From 38108cceacef086fb64a53827b7910fa70ea25d3 Mon Sep 17 00:00:00 2001 From: Alice Frumin Date: Mon, 18 Jul 2016 17:39:56 -0400 Subject: [PATCH] adding contexts to altermailparams hooks --- CRM/Core/BAO/MessageTemplate.php | 2 +- CRM/Utils/Mail.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/BAO/MessageTemplate.php b/CRM/Core/BAO/MessageTemplate.php index a46dfbddfc..df5af61ad6 100644 --- a/CRM/Core/BAO/MessageTemplate.php +++ b/CRM/Core/BAO/MessageTemplate.php @@ -340,7 +340,7 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate { ); $params = array_merge($defaults, $params); - CRM_Utils_Hook::alterMailParams($params); + CRM_Utils_Hook::alterMailParams($params, 'messageTemplate'); if ((!$params['groupName'] || !$params['valueName'] diff --git a/CRM/Utils/Mail.php b/CRM/Utils/Mail.php index 57453a0ca5..bfc9216cd1 100644 --- a/CRM/Utils/Mail.php +++ b/CRM/Utils/Mail.php @@ -164,7 +164,7 @@ class CRM_Utils_Mail { } // first call the mail alter hook - CRM_Utils_Hook::alterMailParams($params); + CRM_Utils_Hook::alterMailParams($params, 'singleEmail'); // check if any module has aborted mail sending if (!empty($params['abortMailSend']) || empty($params['toEmail'])) { -- 2.25.1