You are here

function user_validate_mail in Drupal 5

Same name and namespace in other branches
  1. 4 modules/user.module \user_validate_mail()
  2. 6 modules/user/user.module \user_validate_mail()
  3. 7 modules/user/user.module \user_validate_mail()
1 call to user_validate_mail()
_user_edit_validate in modules/user/user.module

File

modules/user/user.module, line 279
Enables the user registration and login system.

Code

function user_validate_mail($mail) {
  if (!$mail) {
    return t('You must enter an e-mail address.');
  }
  if (!valid_email_address($mail)) {
    return t('The e-mail address %mail is not valid.', array(
      '%mail' => $mail,
    ));
  }
}