diff --git a/course/format/classes/output/local/state/cm.php b/course/format/classes/output/local/state/cm.php index b602c0540e1..99b5a493f4f 100644 --- a/course/format/classes/output/local/state/cm.php +++ b/course/format/classes/output/local/state/cm.php @@ -90,6 +90,8 @@ class cm implements renderable { 'sectionnumber' => $section->section, 'uservisible' => $cm->uservisible, 'hascmrestrictions' => $this->get_has_restrictions(), + 'module' => $cm->modname, + 'plugin' => 'mod_' . $cm->modname, ]; // Check the user access type to this cm.