function _user_import_validate_email in User Import 7.2
Same name and namespace in other branches
- 8 supported/user.inc \_user_import_validate_email()
- 5.2 supported/user.inc \_user_import_validate_email()
- 5 supported/user.inc \_user_import_validate_email()
- 6.4 supported/user.inc \_user_import_validate_email()
- 6.2 supported/user.inc \_user_import_validate_email()
- 7.3 supported/user.inc \_user_import_validate_email()
- 7 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 277
Code
function _user_import_validate_email($email = NULL, $duplicates_allowed = FALSE) {
if (empty($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;
}