MDL-33726 course: don't list labels in section summary
Its a special 'non-activity' kind of activity ;-)
This commit is contained in:
@@ -316,6 +316,11 @@ abstract class format_section_renderer_base extends plugin_renderer_base {
|
||||
foreach ($modsequence as $cmid) {
|
||||
$thismod = $mods[$cmid];
|
||||
|
||||
if ($thismod->modname == 'label') {
|
||||
// Labels are special (not interesting for students)!
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($thismod->uservisible) {
|
||||
if (isset($sectionmods[$thismod->modname])) {
|
||||
$sectionmods[$thismod->modname]['count']++;
|
||||
|
||||
Reference in New Issue
Block a user