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:
Petr Škoda 2012-11-11 16:49:16 +01:00
parent ca48fe5f97
commit e1fa177cf9
7 changed files with 45 additions and 4 deletions

View file

@ -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',