function system_mail
Same name and namespace in other branches
- 6.x drupal-6.x/modules/system/system.module \system_mail()
Implements hook_mail().
Archivo
- drupal-7.x/
modules/ system/ system.module, line 3229 - Configuration system that lets administrators modify the workings of the site.
Código
function system_mail($key, &$message, $params) {
$context = $params['context'];
$subject = token_replace($context['subject'], $context);
$body = token_replace($context['message'], $context);
$message['subject'] .= str_replace(array("\r", "\n"), '', $subject);
$message['body'][] = $body;
}