function user_email_verification_request_submit in User email verification 7
_state
Parameters
unknown $form:
File
- ./
user_email_verification.admin.inc, line 196 - Administrative functions required in a specific case.
Code
function user_email_verification_request_submit($form, &$form_state) {
global $language;
$account = $form_state['values']['account'];
// Mail one time login URL and instructions using current language.
$mail = user_email_verification_mail_notify('verify', $account, $language);
if (!empty($mail)) {
watchdog('user', 'Verification instructions mailed to %name at %email.', array(
'%name' => $account->name,
'%email' => $account->mail,
));
drupal_set_message(t('Further instructions have been sent to your e-mail address.'));
}
$form_state['redirect'] = 'user';
return;
}