Skip to content

Commit

Permalink
MDL-37897 Remove useless Blackboard question import format
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Michel Vedrine committed Feb 28, 2013
1 parent cce0d9a commit 4f31578
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 1,029 deletions.
7 changes: 7 additions & 0 deletions lib/db/upgrade.php
Expand Up @@ -1670,5 +1670,12 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2013022600.00);
}

if ($oldversion < 2013022800.01) {
// Cleanup qformat blackboard settings.
unset_all_config_for_plugin('qformat_blackboard');

upgrade_main_savepoint(true, 2013022800.01);
}

return true;
}
3 changes: 2 additions & 1 deletion lib/pluginlib.php
Expand Up @@ -362,6 +362,7 @@ public function some_plugins_updatable() {
public static function is_deleted_standard_plugin($type, $name) {
static $plugins = array(
// do not add 1.9-2.2 plugin removals here
'qformat' => array('blackboard'),
);

if (!isset($plugins[$type])) {
Expand Down Expand Up @@ -508,7 +509,7 @@ public static function standard_plugins_list($type) {
),

'qformat' => array(
'aiken', 'blackboard', 'blackboard_six', 'examview', 'gift',
'aiken', 'blackboard_six', 'examview', 'gift',
'learnwise', 'missingword', 'multianswer', 'webct',
'xhtml', 'xml'
),
Expand Down

0 comments on commit 4f31578

Please sign in to comment.