$formcontent .= $this->course_modchooser_module_types($activities);
}
- // Activities
++ // Resources
+ $resources = array_filter($modules,
+ create_function('$mod', 'return ($mod->archetype === MOD_CLASS_RESOURCE);'));
+ if (count($resources)) {
+ $formcontent .= $this->course_modchooser_title('resources');
+ $formcontent .= $this->course_modchooser_module_types($resources);
+ }
+
$formcontent .= html_writer::end_tag('div'); // modoptions
$formcontent .= html_writer::end_tag('div'); // types