You are here

function email_verify_form_contact_site_form_alter in Email Verify 7

Implements hook_form_FORM_ID_alter() for the contact_site form.

File

./email_verify.module, line 86
Verifies thoroughly that email addresses are correctly entered Copyright: Daniel Bonniot <bonniot@users.sourceforge.net> License: GNU GPL v2 or later

Code

function email_verify_form_contact_site_form_alter(&$form, &$form_state, $form_id) {
  if (variable_get('email_verify_active', 0) && module_exists('contact') && variable_get('email_verify_site_contact', 0)) {
    $form['#validate'][] = 'email_verify_edit_validate';
  }
}