Commit 4d9c4072 authored by Francois Gannaz's avatar Francois Gannaz
Browse files

Settings to connect to LabNbook

parent 64ffe2db
......@@ -40,3 +40,9 @@ $string['pluginadministration'] = 'LabNbook administration';
$string['pluginname'] = 'LabNbook';
$string['privacy:metadata'] = 'LabNbook does not store any personal data';
$string['view'] = 'View';
$string['mission'] = "Mission";
$string['labnbook_url'] = "LabNbook URL";
$string['labnbook_url_descr'] = "The URL to the root of labnbook, with a trailing slash. E.g. https://uga.labnbook.fr/";
$string['labnbook_key'] = "LabNbook Key";
$string['labnbook_key_descr'] = "The secret key that grants Moodle acces the API of LabNbook. This key is provided by the LabNbook instance.";
......@@ -26,6 +26,14 @@
defined('MOODLE_INTERNAL') || die();
if ($ADMIN->fulltree) {
// TODO: Define the plugin settings page.
// https://docs.moodle.org/dev/Admin_settings
$settings->add(
new admin_setting_configtext(
'labnbook_url', get_string('labnbook_url', 'mod_labnbook'), get_string('labnbook_url_descr', 'mod_labnbook'), "", PARAM_URL
)
);
$settings->add(
new admin_setting_configtext(
'labnbook_key', get_string('labnbook_key', 'mod_labnbook'), get_string('labnbook_key_descr', 'mod_labnbook'), "", PARAM_ALPHANUM
)
);
}
......@@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'mod_labnbook';
$plugin->release = '0.1.2';
$plugin->release = '0.1.3';
$plugin->version = 2019020100;
$plugin->requires = 2016120500;
$plugin->maturity = MATURITY_ALPHA;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment