adding contexts to altermailparams hooks
authorAlice Frumin <alice@aghstrategies.com>
Mon, 18 Jul 2016 21:39:56 +0000 (17:39 -0400)
committerAlice Frumin <alice@aghstrategies.com>
Mon, 18 Jul 2016 21:39:56 +0000 (17:39 -0400)
CRM/Core/BAO/MessageTemplate.php
CRM/Utils/Mail.php

index a46dfbddfcd03f8242057cdd301dcf54bb95cab0..df5af61ad68a89b517269d891221c5886c4af152 100644 (file)
@@ -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']
index 57453a0ca51c4da1996ceeec9e0b71c952c82f24..bfc9216cd1179c950225f5b8e610ecbf94bedc82 100644 (file)
@@ -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'])) {