MDL-31845 add "Local category field" option in database enrol plugin
This patch uses code from the original patch by Michael Aherne, most of the credit goes to him.
This commit is contained in:
@@ -66,6 +66,8 @@ if ($ADMIN->fulltree) {
|
||||
$options = array('id'=>'id', 'shortname'=>'shortname', 'fullname'=>'fullname');
|
||||
$settings->add(new admin_setting_configselect('enrol_database/localrolefield', get_string('localrolefield', 'enrol_database'), '', 'shortname', $options));
|
||||
|
||||
$options = array('id'=>'id', 'idnumber'=>'idnumber');
|
||||
$settings->add(new admin_setting_configselect('enrol_database/localcategoryfield', get_string('localcategoryfield', 'enrol_database'), '', 'id', $options));
|
||||
|
||||
|
||||
$settings->add(new admin_setting_heading('enrol_database_remoteheader', get_string('settingsheaderremote', 'enrol_database'), ''));
|
||||
|
||||
Reference in New Issue
Block a user