Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
22273a43
Commit
22273a43
authored
Aug 26, 2009
by
Angie Byron
Browse files
#524790
by torelad: Fixed incorrect sample code for hook_mail_alter().
parent
dc856e22
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/system/system.api.php
View file @
22273a43
...
...
@@ -646,8 +646,8 @@ function hook_image_toolkits() {
* MIME-Version, Content-Type, etc.
*/
function
hook_mail_alter
(
&
$message
)
{
if ($message['
mail_
id'] == 'm
y
_message') {
$message['body']
.= "\n\n
--\nMail sent out from " . variable_get('sitename', t('Drupal'));
if
(
$message
[
'id'
]
==
'm
odulename
_message
key
'
)
{
$message
[
'body'
]
[]
=
"
--
\n
Mail sent out from "
.
variable_get
(
'sitename'
,
t
(
'Drupal'
));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment