MDL-33726 course: don't list labels in section summary

Its a special 'non-activity' kind of activity ;-)
This commit is contained in:
Dan Poltawski
2012-06-14 17:24:49 +08:00
parent 60d3ff94db
commit 00c41b4083
+5
View File
@@ -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']++;