mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Hide labels from nav menu
This commit is contained in:
parent
da23d41a1f
commit
ab2df10cc8
1 changed files with 3 additions and 0 deletions
|
@ -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 --------------";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue