You are here

function subscriptions_mail_mail_alter in Subscriptions 6

Same name and namespace in other branches
  1. 5.2 subscriptions_mail.module \subscriptions_mail_mail_alter()
  2. 7 subscriptions_mail.module \subscriptions_mail_mail_alter()
  3. 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.cron.inc, line 377
Subscriptions module mail gateway (cron functions).

Code

function subscriptions_mail_mail_alter(&$message) {
  $message['body'] = preg_replace('/ +(\\r?\\n)/', '\\1', $message['body']);
}