MDL-69022 tool_moodlenet: Disable integration by default

This commit is contained in:
Mathew May
2020-06-11 17:25:54 +08:00
parent 71a34a039f
commit ddb34e56d3
3 changed files with 9 additions and 2 deletions
+7
View File
@@ -77,5 +77,12 @@ function xmldb_tool_moodlenet_upgrade(int $oldversion) {
upgrade_plugin_savepoint(true, 2020060500, 'tool', 'moodlenet');
}
if ($oldversion < 2020060500.02) {
// Disable the MoodleNet integration by default till further notice.
set_config('enablemoodlenet', 0, 'tool_moodlenet');
upgrade_plugin_savepoint(true, 2020060500.02, '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 = 2020060500;
$plugin->version = 2020060500.02;
$plugin->requires = 2020022800.01;
$plugin->maturity = MATURITY_ALPHA;