Details
-
Type: Improvement
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.23
-
Fix Version/s: 4.7.31
-
Component/s: CiviMail, Core CiviCRM
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Contributed Code
-
Verified?:No
Description
TheĀ alterMailContent hook can be used to alter templates and email content before token processing occurs. Currently it only passes the subject, html, and text content to the hook, which means you have very little context to work with.
When this is triggered via msg template generation, we should include details about the template so the hook implementation can be conditioned meaningfully.