function user_mail

Same name in other branches
  1. 9 core/modules/user/user.module \user_mail()
  2. 8.9.x core/modules/user/user.module \user_mail()
  3. 10 core/modules/user/user.module \user_mail()
  4. 11.x core/modules/user/user.module \user_mail()

Implements hook_mail().

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

File

modules/user/user.module, line 2759

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.