You are here

function multiple_email_form_user_register_form_alter in Multiple E-mail Addresses 2.x

Same name and namespace in other branches
  1. 7 multiple_email.module \multiple_email_form_user_register_form_alter()

Implements hook_form_BASE_FORM_ID_alter().

Adds a custom validator to the user registration form to check if the email address in not already in use.

File

./multiple_email.module, line 193
multiple_email module file

Code

function multiple_email_form_user_register_form_alter(&$form, &$form_state, $form_id) {
  $form['account']['mail']['#element_validate'][] = '_multiple_email_user_register_form_validate';
}