The default behavior for user registration is that if a user tries to register with an email that already exists, it lets them know and asks if they have forgotten their password.
We have a custom link to our product download in the email the user receives, and what we'd like to do if a user tries to re-register with the same email is to just resend the email, without notifying them that they already have an account.
I can't seem to find a way to do this. Any ideas? I'm not super-experienced with Drupal anymore.
CODE
function create_vector_user_form_user_register_form_alter(&$form, &$form_state) {
error_log("form alter"); // this logs
$form_state['values']['pass']['pass1'] = 'password';
$form_state['values']['pass']['pass2'] = 'password';
$form_state['values']['op'] = t('Create new account');
$form['#submit'] []= "create_vector_user_user_register_submit";
}
function create_vector_user_user_register_submit($form, &$form_state) {
error_log("submit handler"); // this does not log
$form_state['build_info']['args'] = array(&$object);
drupal_form_submit('create_vector_user_form', $form_state);
drupal_set_message("The form is being submitted, do some extra stuff now...");
}