function user_mail

Implements hook_mail().

3 string references to 'user_mail'

File

drupal/core/modules/user/user.module, line 1989
Enables the user registration and login system.

Code

function user_mail($key, &$message, $params) {
  $langcode = $message['langcode'];
  $variables = array(
    'user' => $params['account'],
  );
  $message['subject'] .= _user_mail_text($key . '.subject', $langcode, $variables);
  $message['body'][] = _user_mail_text($key . '.body', $langcode, $variables);
}