You are here

function user_registrationpassword_mail in User registration password 6

Same name and namespace in other branches
  1. 8 user_registrationpassword.module \user_registrationpassword_mail()
  2. 7 user_registrationpassword.module \user_registrationpassword_mail()

Implements hook_mail().

File

./user_registrationpassword.module, line 175
Enables password creation on registration form.

Code

function user_registrationpassword_mail($key, &$message, $params) {
  $language = $message['language'];
  $variables = array_merge(user_mail_tokens($params['account'], $language), user_registrationpassword_mail_tokens($params['account'], $language));
  $message['subject'] .= _user_registrationpassword_mail_text($key . '_subject', $language, $variables);
  $message['body'][] = _user_registrationpassword_mail_text($key . '_body', $language, $variables);
}