function password_policy_mail in Password Policy 6
Same name and namespace in other branches
- 7.2 password_policy.module \password_policy_mail()
- 7 password_policy.module \password_policy_mail()
Implements hook_mail().
File
- ./
password_policy.module, line 619 - The password policy module allows you to enforce a specific level of password complexity for the user passwords on the system.
Code
function password_policy_mail($key, &$message, $params) {
$language = $message['language'];
$variables = password_policy_mail_tokens($params, $language);
$message['subject'] .= _password_policy_mail_text($key . '_subject', $language, $variables);
$message['body'][] = _password_policy_mail_text($key . '_body', $language, $variables);
}