Commit 22273a43 authored by webchick's avatar webchick

#524790 by torelad: Fixed incorrect sample code for hook_mail_alter().

parent dc856e22
......@@ -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'));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment