/** * Code run after the module database tables have been created. * Moves the comments plugin to the bottom * @return bool */ function xmldb_setasksubmission_comments_install() { global $CFG; require_once $CFG->dirroot . '/mod/setask/adminlib.php'; // Set the correct initial order for the plugins. $pluginmanager = new setask_plugin_manager('setasksubmission'); $pluginmanager->move_plugin('comments', 'down'); $pluginmanager->move_plugin('comments', 'down'); return true; }
/** * Code run after the setaskfeedback_file module database tables have been created. * Moves the feedback file plugin down * * @return bool */ function xmldb_setaskfeedback_file_install() { global $CFG; require_once $CFG->dirroot . '/mod/setask/adminlib.php'; // Set the correct initial order for the plugins. $pluginmanager = new setask_plugin_manager('setaskfeedback'); $pluginmanager->move_plugin('file', 'down'); return true; }