summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoao Ventura2013-07-05 15:21:31 (GMT)
committerJoao Ventura2013-07-05 15:21:31 (GMT)
commitd68dffe7d99b20c8411503a26618a401028aadbc (patch)
tree98b89f6286b68942be4bd2046b078e1792a997aa
parent19cb98274c2139fbfd29dd2943912405e72244c9 (diff)
Add drupal_alter call to print_mail before email is sent.
-rw-r--r--print_mail/print_mail.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/print_mail/print_mail.inc b/print_mail/print_mail.inc
index 953b16a..84ec0c0 100644
--- a/print_mail/print_mail.inc
+++ b/print_mail/print_mail.inc
@@ -407,6 +407,9 @@ function print_mail_form_submit($form, &$form_state) {
$pattern = '!<(a\s[^>]*?)>!is';
$params['body'] = preg_replace_callback($pattern, '_print_rewrite_urls', $params['body']);
+ // Enable support for third-party modules to alter the e-mail before it's sent
+ drupal_alter('print_mail', $params, $to);
+
$ok = FALSE;
$use_job_queue = variable_get('print_mail_job_queue', PRINT_MAIL_JOB_QUEUE_DEFAULT);
if ($use_job_queue) {