function logintoboggan_resend_validation in LoginToboggan 6
Same name and namespace in other branches
- 5 logintoboggan.module \logintoboggan_resend_validation()
- 7 logintoboggan.validation.inc \logintoboggan_resend_validation()
Re-sends validation e-mail to user specified by $uid.
2 string references to 'logintoboggan_resend_validation'
- logintoboggan_mail in ./
logintoboggan.module - Implementation of hook_mail().
- logintoboggan_menu in ./
logintoboggan.module - Implementation of hook_menu()
File
- ./
logintoboggan.module, line 1156 - Logintoboggan Module
Code
function logintoboggan_resend_validation($account) {
global $language;
$account->password = t('If required, you may reset your password from: !url', array(
'!url' => url('user/password', array(
'absolute' => TRUE,
)),
));
$params['account'] = $account;
$params['login_url'] = logintoboggan_eml_validate_url($account);
// Prepare and send e-mail.
drupal_mail('logintoboggan', 'logintoboggan_resend_validation', $account->mail, $language, $params);
// Notify admin or user that e-mail was sent and return to user edit form.
if (user_access('administer users')) {
drupal_set_message(t("A validation e-mail has been sent to the user's e-mail address."));
}
else {
drupal_set_message(t('A validation e-mail has been sent to your e-mail address. You will need to follow the instructions in that message in order to gain full access to the site.'));
}
drupal_goto('user/' . $account->uid . '/edit');
}