From ee701b3336d04488122c13e142369e179a63be16 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 2 Jul 2007 14:41:37 +0000 Subject: - Patch #155986 by Uwe: fixed typos. --- includes/mail.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'includes/mail.inc') diff --git a/includes/mail.inc b/includes/mail.inc index dcbebd660..06714fe21 100644 --- a/includes/mail.inc +++ b/includes/mail.inc @@ -38,7 +38,7 @@ * drupal_mail('example', 'notify', $account->mail, user_preferred_language($account), $params); * } * } - * + * * function example_mail($key, &$message, $params) { * $language = $message['language']; * $variables = user_mail_tokens($params['account'], $language); @@ -80,11 +80,11 @@ */ function drupal_mail($module, $key, $to, $language, $params = array(), $from = NULL, $send = TRUE) { $default_from = variable_get('site_mail', ini_get('sendmail_from')); - + // Bundle up the variables into a structured array for altering. $message = array( 'id' => $module .'_'. $key, - 'to' => $to, + 'to' => $to, 'from' => isset($from) ? $from : $default_from, 'language' => $language, 'params' => $params, @@ -109,14 +109,14 @@ function drupal_mail($module, $key, $to, $language, $params = array(), $from = N $headers['From'] = $headers['Reply-To'] = $from; } $message['headers'] = $headers; - + // Build the e-mail (get subject and body, allow additional headers) by // invoking hook_mail() on this module. We cannot use module_invoke() as // we need to have $message by reference in hook_mail(). if (function_exists($function = $module .'_mail')) { $function($key, $message, $params); } - + // Invoke hook_mail_alter() to allow all modules to alter the resulting e-mail. drupal_alter('mail', $message); -- cgit v1.2.3