summaryrefslogtreecommitdiff
path: root/modules/system/system.api.php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-26 03:09:12 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-26 03:09:12 +0000
commit22273a43eb08a2558cbc114dfc143904154338d6 (patch)
tree1cedf8b939815447ed9a5982e5929595254c93b1 /modules/system/system.api.php
parentdc856e22cdfe18ff3cea4575136a1453b5129ee1 (diff)
downloadbrdo-22273a43eb08a2558cbc114dfc143904154338d6.tar.gz
brdo-22273a43eb08a2558cbc114dfc143904154338d6.tar.bz2
#524790 by torelad: Fixed incorrect sample code for hook_mail_alter().
Diffstat (limited to 'modules/system/system.api.php')
-rw-r--r--modules/system/system.api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index 82f7240c7..2b1c9a120 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -646,8 +646,8 @@ function hook_image_toolkits() {
* MIME-Version, Content-Type, etc.
*/
function hook_mail_alter(&$message) {
- if ($message['mail_id'] == 'my_message') {
- $message['body'] .= "\n\n--\nMail sent out from " . variable_get('sitename', t('Drupal'));
+ if ($message['id'] == 'modulename_messagekey') {
+ $message['body'][] = "--\nMail sent out from " . variable_get('sitename', t('Drupal'));
}
}