Hide labels from nav menu
authormoodler <moodler>
Mon, 15 Sep 2003 11:59:15 +0000 (11:59 +0000)
committermoodler <moodler>
Mon, 15 Sep 2003 11:59:15 +0000 (11:59 +0000)
lib/weblib.php

index 0804b5e5c9c56133494414035e4979afd154534c..08661a757414b1c9aff57c44f2fd16a370361f69 100644 (file)
@@ -1322,6 +1322,9 @@ function navmenu($course, $cm=NULL, $targetwindow="self") {
     $section = -1;
     $selected = "";
     foreach ($modinfo as $mod) {
+        if ($mod->mod == "label") {
+            continue;
+        }
         if ($mod->section > 0 and $section <> $mod->section) {
             $menu[] = "-------------- $strsection $mod->section --------------";
         }