contact_personal_form_validate

Versions
7
contact_personal_form_validate($form, &$form_state)

Form validation handler for contact_personal_form().

See also

contact_personal_form()

Code

modules/contact/contact.pages.inc, line 245

<?php
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.'));
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.