You are here

function user_registrationpassword_mail in User registration password 7

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

Implements hook_mail().

See also

drupal_mail()

_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'
user_registrationpassword_variable_info in ./user_registrationpassword.variable.inc
Implements hook_variable_info().

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);
}