You are here

function contact_mail_user_validate in Contact 6.2

Form validation handler for contact_mail_user().

See also

contact_mail_user()

File

./contact.pages.inc, line 256
User page callbacks for the contact module.

Code

function contact_mail_user_validate($form, &$form_state) {
  if (!valid_email_address($form_state['values']['mail'])) {
    form_set_error('mail', t('You must enter a valid e-mail address.'));
  }
}