function user_mail

7.x user.module user_mail($key, &$message, $params)
6.x user.module user_mail($key, &$message, $params)

Implements hook_mail().

2 string references to 'user_mail'
contact_mail in drupal-7.x/modules/contact/contact.module
Implements hook_mail().
contact_personal_form_submit in drupal-7.x/modules/contact/contact.pages.inc
Form submission handler for contact_personal_form().

File

drupal-7.x/modules/user/user.module, line 2660
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);
}