You are here

function email_verify_form_registration_form_alter in Email Verify 7

Implements hook_form_FORM_ID_alter().

For the Entity Registration module's Registration Form. https://www.drupal.org/project/registration

File

./email_verify.module, line 107
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_registration_form_alter(&$form, &$form_state, $form_id) {
  if (variable_get('email_verify_active', 0) && variable_get('email_verify_user_registration', 1)) {
    $form['#validate'][] = 'email_verify_edit_validate';
  }
}