You are here

function _user_import_validate_email in User Import 5.2

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

File

supported/user.inc, line 155

Code

function _user_import_validate_email($email = NULL, $duplicates_allowed = FALSE) {
  if (!$email) {
    user_import_errors(t('no email'));
  }
  elseif (!valid_email_address($email)) {
    user_import_errors(t('invalid email'));
  }
  elseif (!$duplicates_allowed && _user_import_existing_uid($email)) {
    user_import_errors(t('duplicate email'));
  }
  return;
}