Exemplo n.º 1
0
/**
 * Code run after the assignsubmission_onlinetext module database tables have been created.
 * Moves the plugin to the top of the list (of 3)
 * @return bool
 */
function xmldb_assignsubmission_onlinetext_install()
{
    global $CFG;
    // Set the correct initial order for the plugins.
    require_once $CFG->dirroot . '/mod/assign/adminlib.php';
    $pluginmanager = new assign_plugin_manager('assignsubmission');
    $pluginmanager->move_plugin('onlinetext', 'up');
    $pluginmanager->move_plugin('onlinetext', 'up');
    return true;
}
Exemplo n.º 2
0
/**
 * Code run after the assignsubmission_onlinepoodll module database tables have been created.
 * Moves the plugin to the top of the list (of 3)
 * @return bool
 */
function xmldb_assignsubmission_onlinepoodll_install()
{
    global $CFG;
    // do the install
    require_once $CFG->dirroot . '/mod/assign/adminlib.php';
    // set the correct initial order for the plugins
    $pluginmanager = new assign_plugin_manager('assignsubmission');
    $pluginmanager->move_plugin('onlinepoodll', 'up');
    $pluginmanager->move_plugin('onlinepoodll', 'up');
    // do the upgrades
    return true;
}
Exemplo n.º 3
0
/**
 * Set the initial order for the feedback comments plugin (top)
 * @return bool
 */
function xmldb_assignfeedback_comments_install()
{
    global $CFG;
    require_once $CFG->dirroot . '/mod/assign/adminlib.php';
    // Set the correct initial order for the plugins.
    $pluginmanager = new assign_plugin_manager('assignfeedback');
    $pluginmanager->move_plugin('comments', 'up');
    return true;
}
Exemplo n.º 4
0
/**
 * Code run after the assignfeedback_file module database tables have been created.
 * Moves the feedback file plugin down
 *
 * @return bool
 */
function xmldb_assignfeedback_file_install() {
    global $CFG;

    // do the install

    require_once($CFG->dirroot . '/mod/assign/adminlib.php');
    // set the correct initial order for the plugins
    $pluginmanager = new assign_plugin_manager('assignfeedback');

    $pluginmanager->move_plugin('file', 'down');

    // do the upgrades
    return true;
}