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:
Petr Skoda 2012-03-10 14:01:03 +01:00
parent 23778a4dfa
commit e042c58df1
4 changed files with 10 additions and 5 deletions

View file

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