function user_registrationpassword_mail in User registration password 7
Same name and namespace in other branches
- 8 user_registrationpassword.module \user_registrationpassword_mail()
- 6 user_registrationpassword.module \user_registrationpassword_mail()
Implements hook_mail().
See also
_user_registrationpassword_mail_text()
user_registrationpassword_mailkeys()
user_registrationpassword_mail_edit_text()
user_registrationpassword_mail_edit_token_types()
1 string reference to 'user_registrationpassword_mail'
File
- ./
user_registrationpassword.module, line 308 - Enables password creation on registration form.
Code
function user_registrationpassword_mail($key, &$message, $params) {
$language = $message['language'];
$variables = array(
'user' => $params['account'],
);
$message['subject'] .= _user_registrationpassword_mail_text($key . '_subject', $language, $variables);
$message['body'][] = _user_registrationpassword_mail_text($key . '_body', $language, $variables);
}