This commit is contained in:
Sara Arjona
2020-06-11 12:50:49 +02:00
3 changed files with 9 additions and 2 deletions
+7
View File
@@ -95,5 +95,12 @@ function xmldb_tool_moodlenet_upgrade(int $oldversion) {
upgrade_plugin_savepoint(true, 2020061501, 'tool', 'moodlenet');
}
if ($oldversion < 2020061502) {
// Disable the MoodleNet integration by default till further notice.
set_config('enablemoodlenet', 0, 'tool_moodlenet');
upgrade_plugin_savepoint(true, 2020061502, 'tool', 'moodlenet');
}
return true;
}
+1 -1
View File
@@ -32,7 +32,7 @@ if ($hassiteconfig) {
$ADMIN->add('moodlenet', $settings);
$temp = new admin_setting_configcheckbox('tool_moodlenet/enablemoodlenet', get_string('enablemoodlenet', 'tool_moodlenet'),
new lang_string('enablemoodlenet_desc', 'tool_moodlenet'), 1, 1, 0);
new lang_string('enablemoodlenet_desc', 'tool_moodlenet'), 0, 1, 0);
$settings->add($temp);
$temp = new admin_setting_configtext('tool_moodlenet/defaultmoodlenetname',
+1 -1
View File
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'tool_moodlenet';
$plugin->version = 2020061501;
$plugin->version = 2020061502;
$plugin->requires = 2020060900;
$plugin->maturity = MATURITY_ALPHA;