1 user.module | user_mail($key, &$message, $params) |
Implements hook_mail().
File
- core/
modules/ user/ user.module, line 2414 - Enables the user registration and login system.
Code
function user_mail($key, &$message, $params) {
$language = $message['language'];
$variables = array('user' => $params['account']);
$message['subject'] .= _user_mail_text($key . '_subject', $language, $variables);
$message['body'][] = _user_mail_text($key . '_body', $language, $variables);
}