mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
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:
parent
23778a4dfa
commit
e042c58df1
4 changed files with 10 additions and 5 deletions
|
@ -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'), ''));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue