Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LabNbook
LabNbook-Moodle
Commits
4d9c4072
Commit
4d9c4072
authored
Feb 21, 2019
by
Francois Gannaz
Browse files
Settings to connect to LabNbook
parent
64ffe2db
Changes
3
Hide whitespace changes
Inline
Side-by-side
lang/en/labnbook.php
View file @
4d9c4072
...
...
@@ -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."
;
settings.php
View file @
4d9c4072
...
...
@@ -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
)
);
}
version.php
View file @
4d9c4072
...
...
@@ -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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment