function contact_personal_form_validate

contact_personal_form_validate($form, &$form_state)

Form validation handler for contact_personal_form().

See also

contact_personal_form_submit()

File

modules/contact/contact.pages.inc, line 258
Page callbacks for the Contact module.

Code

function contact_personal_form_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.'));
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!contact!contact.pages.inc/function/contact_personal_form_validate/7.x