summaryrefslogtreecommitdiff
path: root/includes/mail.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-07-02 14:41:37 +0000
committerDries Buytaert <dries@buytaert.net>2007-07-02 14:41:37 +0000
commitee701b3336d04488122c13e142369e179a63be16 (patch)
tree158725be7c013a3c67d386facc89f34688d39096 /includes/mail.inc
parent5e5a07f513ee793a8bbe5094895b4ebd5a1de8a2 (diff)
downloadbrdo-ee701b3336d04488122c13e142369e179a63be16.tar.gz
brdo-ee701b3336d04488122c13e142369e179a63be16.tar.bz2
- Patch #155986 by Uwe: fixed typos.
Diffstat (limited to 'includes/mail.inc')
-rw-r--r--includes/mail.inc10
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);