From 22273a43eb08a2558cbc114dfc143904154338d6 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 26 Aug 2009 03:09:12 +0000 Subject: #524790 by torelad: Fixed incorrect sample code for hook_mail_alter(). --- modules/system/system.api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/system/system.api.php') 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')); } } -- cgit v1.2.3