function uif_adjust_header_values in User Import Framework 7
Perform header adjustments.
1 call to uif_adjust_header_values()
- uif_validate_user_file in ./
uif.admin.inc - Read the user import file and validate on the way.
File
- ./
uif.admin.inc, line 739 - Simple, extensible user import from a CSV file.
Code
function uif_adjust_header_values(&$header_row) {
foreach ($header_row as &$label) {
if ('email' == $label) {
$label = 'mail';
drupal_set_message(t('Header label <em>mail</em> substituted for deprecated label <em>email</em>.'), 'warning');
}
if ('username' == $label) {
$label = 'name';
drupal_set_message(t('Header label <em>name</em> substituted for deprecated label <em>username</em>.'), 'warning');
}
if ('password' == $label) {
$label = 'pass';
drupal_set_message(t('Header label <em>pass</em> substituted for deprecated label <em>password</em>.'), 'warning');
}
}
}