mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-40683 administration: Include alternate name fields in CSV user import.
Removal of firstname and lastname from STD_FIELDS
This commit is contained in:
parent
6f4ece9f57
commit
c00252fbed
@ -85,7 +85,7 @@ $today = time();
|
||||
$today = make_timestamp(date('Y', $today), date('m', $today), date('d', $today), 0, 0, 0);
|
||||
|
||||
// array of all valid fields for validation
|
||||
$STD_FIELDS = array('id', 'firstname', 'lastname', 'username', 'email',
|
||||
$STD_FIELDS = array('id', 'username', 'email',
|
||||
'city', 'country', 'lang', 'timezone', 'mailformat',
|
||||
'maildisplay', 'maildigest', 'htmleditor', 'autosubscribe',
|
||||
'institution', 'department', 'idnumber', 'skype',
|
||||
@ -97,7 +97,7 @@ $STD_FIELDS = array('id', 'firstname', 'lastname', 'username', 'email',
|
||||
'deleted', // 1 means delete user
|
||||
'mnethostid', // Can not be used for adding, updating or deleting of users - only for enrolments, groups, cohorts and suspending.
|
||||
);
|
||||
// Include alternate name fields such as firstnamephonetic.
|
||||
// Include all name fields.
|
||||
$STD_FIELDS = array_merge($STD_FIELDS, get_all_user_name_fields());
|
||||
|
||||
$PRF_FIELDS = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user