You are here

function sharedemail_form_user_profile_form_alter in Shared Email 7

Implements hook_form_FORM_ID_alter() for user_profile_form().

Replace's the form's default #validate function with a wrapper function to make the User module think the e-mail address is unique.

File

./sharedemail.module, line 90
Allow an e-mail address to be used by more than one user account.

Code

function sharedemail_form_user_profile_form_alter(&$form, &$form_state, $form_id) {
  sharedemail_form_user_account_form_alter($form, $form_state, $form_id);
}