function subscriptions_mail_mail_alter in Subscriptions 5.2
Same name and namespace in other branches
- 6 subscriptions_mail.cron.inc \subscriptions_mail_mail_alter()
- 7 subscriptions_mail.module \subscriptions_mail_mail_alter()
- 2.0.x subscriptions_mail/subscriptions_mail.module \subscriptions_mail_mail_alter()
Implementation of hook_mail_alter().
Remove any trailing spaces (must run after mail_edit_mail_alter()!).
File
- ./
subscriptions_mail.module, line 420 - Subscriptions module mail gateway.
Code
function subscriptions_mail_mail_alter(&$mailkey, &$to, &$subject, &$body, &$from, &$headers) {
$body = preg_replace('/ +(\\r?\\n)/', '\\1', $body);
}