You are here

function user_user_import_data in User Import 5.2

Same name and namespace in other branches
  1. 8 supported/user.inc \user_user_import_data()
  2. 5 supported/user.inc \user_user_import_data()
  3. 6.4 supported/user.inc \user_user_import_data()
  4. 6.2 supported/user.inc \user_user_import_data()
  5. 7.3 supported/user.inc \user_user_import_data()
  6. 7 supported/user.inc \user_user_import_data()
  7. 7.2 supported/user.inc \user_user_import_data()

Implementation of hook_user_import_data().

File

supported/user.inc, line 31

Code

function user_user_import_data($settings, $column_settings, $module, $field_id, $data, $column_id) {
  if ($module != 'user') {
    return;
  }
  if ($field_id == 'email') {
    $value = trim($data[$column_id]);
    _user_import_validate_email($value, $settings['options']['update_users']);
  }
  if ($field_id == 'password') {
    $value = trim($data[$column_id]);
  }
  return $value;
}