You are here

function user_validate_mail in Drupal 6

Same name and namespace in other branches
  1. 4 modules/user.module \user_validate_mail()
  2. 5 modules/user/user.module \user_validate_mail()
  3. 7 modules/user/user.module \user_validate_mail()
3 calls to user_validate_mail()
install_configure_form_validate in ./install.php
Form API validate for the site configuration form.
system_site_information_settings_validate in modules/system/system.admin.inc
Validate the submitted site-information form.
_user_edit_validate in modules/user/user.module

File

modules/user/user.module, line 428
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,
    ));
  }
}