From: tjhunt Date: Fri, 24 Oct 2008 06:41:50 +0000 (+0000) Subject: user selection: MDL-16991 Improve the user selector used on the assign roles and... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=99cd2f77bb2f768091e5ea1a4768f3991b925642;p=moodle.git user selection: MDL-16991 Improve the user selector used on the assign roles and group memebers pages - Create admin setting --- diff --git a/admin/settings/users.php b/admin/settings/users.php index af666a44f7..7bae7c8540 100644 --- a/admin/settings/users.php +++ b/admin/settings/users.php @@ -165,6 +165,10 @@ if ($hassiteconfig 'aimid' => get_string('aimid'), 'msnid' => get_string('msnid'), 'lastaccess' => get_string('lastaccess')))); + + $temp->add(new admin_setting_configmulticheckbox('extrauserselectorfields', + get_string('extrauserselectorfields', 'admin'), get_string('configextrauserselectorfields', 'admin'), array('email' => '1'), + array('email' => get_string('email'), 'idnumber' => get_string('idnumber'), 'username' => get_string('username'), ))); } $ADMIN->add('roles', $temp); diff --git a/lang/en_utf8/admin.php b/lang/en_utf8/admin.php index 07d1e9901c..97773c339f 100644 --- a/lang/en_utf8/admin.php +++ b/lang/en_utf8/admin.php @@ -124,6 +124,7 @@ $string['configenabletrusttext'] = 'By default Moodle will always thoroughly cle $string['configenrolmentplugins'] = 'Please choose the enrolment plugins you wish to use. Don\'t forget to configure the settings properly.

You have to indicate which plugins are enabled, and one plugin can be set as the default plugin for interactive enrolment. To disable interactive enrolment, set \"enrollable\" to \"No\" in required courses.'; $string['configerrorlevel'] = 'Choose the amount of PHP warnings that you want to be displayed. Normal is usually the best choice.'; $string['configextendedusernamechars'] = 'Enable this setting to allow students to use any characters in their usernames (note this does not affect their actual names). The default is \"false\" which restricts usernames to be alphanumeric characters only'; +$string['configextrauserselectorfields'] = 'When selecting users, for example on the assign roles or when adding users to a group, these fields will shown in the list of users, a included in any searches. Note that from a security perspective, selecting username here is a bad idea.'; $string['configfilterall'] = 'Filter all strings, including headings, titles, navigation bar and so on. This is mostly useful when using the multilang filter, otherwise it will just create extra load on your site for little gain.'; $string['configfiltermatchoneperpage'] = 'Automatic linking filters will only generate a single link for the first matching text instance found on the complete page. All others are ignored.'; $string['configfiltermatchonepertext'] = 'Automatic linking filters will only generate a single link for the first matching text instance found in each item of text (e.g., resource, block) on the page. All others are ignored. This setting is ignored if the one per page setting is yes.'; @@ -377,6 +378,7 @@ $string['exceptions'] = 'exceptions'; $string['experimental'] = 'Experimental'; $string['experimentalsettings'] = 'Experimental settings'; $string['extendedusernamechars'] = 'Allow extended characters in usernames'; +$string['extrauserselectorfields'] = 'When selecting users, search and display'; $string['filecreated'] = 'New file created'; $string['filestoredin'] = 'Save file into folder :'; $string['filestoredinhelp'] = 'Where the file will be stored';