diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-07-02 14:41:37 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-07-02 14:41:37 +0000 |
commit | ee701b3336d04488122c13e142369e179a63be16 (patch) | |
tree | 158725be7c013a3c67d386facc89f34688d39096 /includes/mail.inc | |
parent | 5e5a07f513ee793a8bbe5094895b4ebd5a1de8a2 (diff) | |
download | brdo-ee701b3336d04488122c13e142369e179a63be16.tar.gz brdo-ee701b3336d04488122c13e142369e179a63be16.tar.bz2 |
- Patch #155986 by Uwe: fixed typos.
Diffstat (limited to 'includes/mail.inc')
-rw-r--r-- | includes/mail.inc | 10 |
1 files changed, 5 insertions, 5 deletions
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); |