MDL-62229 tool_mobile: Add missing supported module

The Workshop module it’s been supported since Moodle 3.4 so it
should’ve been included here.
This commit is contained in:
Juan Leyva
2018-04-26 19:18:41 +02:00
parent 66df2222f5
commit 82482a0b65
+2 -1
View File
@@ -308,7 +308,8 @@ class api {
$availablemods = core_plugin_manager::instance()->get_plugins_of_type('mod');
$coursemodules = array();
$appsupportedmodules = array('assign', 'book', 'chat', 'choice', 'data', 'feedback', 'folder', 'forum', 'glossary', 'imscp',
'label', 'lesson', 'lti', 'page', 'quiz', 'resource', 'scorm', 'survey', 'url', 'wiki');
'label', 'lesson', 'lti', 'page', 'quiz', 'resource', 'scorm', 'survey', 'url', 'wiki', 'workshop');
foreach ($availablemods as $mod) {
if (in_array($mod->name, $appsupportedmodules)) {
$coursemodules['$mmCourseDelegate_mmaMod' . ucfirst($mod->name)] = $mod->displayname;