mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
MDL-36514 add new option to prevent only new self enrolments
Hopefully this will resolve all confusion around the enrol->status flag in this plugin.
This commit is contained in:
parent
ca48fe5f97
commit
e1fa177cf9
7 changed files with 45 additions and 4 deletions
|
@ -65,6 +65,10 @@ if ($ADMIN->fulltree) {
|
|||
$settings->add(new admin_setting_configselect('enrol_self/status',
|
||||
get_string('status', 'enrol_self'), get_string('status_desc', 'enrol_self'), ENROL_INSTANCE_DISABLED, $options));
|
||||
|
||||
$options = array(1 => get_string('yes'), 0 => get_string('no'));
|
||||
$settings->add(new admin_setting_configselect('enrol_self/newenrols',
|
||||
get_string('newenrols', 'enrol_self'), get_string('newenrols_desc', 'enrol_self'), 1, $options));
|
||||
|
||||
$options = array(1 => get_string('yes'),
|
||||
0 => get_string('no'));
|
||||
$settings->add(new admin_setting_configselect('enrol_self/groupkey',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue