MDL-40683 administration: Include alternate name fields in CSV user import.

Removal of firstname and lastname from STD_FIELDS
This commit is contained in:
Adrian Greeve 2013-10-28 09:14:44 +08:00
parent 6f4ece9f57
commit c00252fbed

View File

@ -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();