You are here

function user_validate_mail in Drupal 4

Same name and namespace in other branches
  1. 5 modules/user/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.module

File

modules/user.module, line 253
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' => theme('placeholder', $mail),
    ));
  }
}