We want to create a regex-based token system, that will resolve just before sending. You should be able to define any number of such tokens in the following way:
regular expression (with named groups)
code for the replacement string (either an API or a static function call)
We'll be using the civicrm_alterMailContent hook (docs)
Sometimes CiviCRM Tokens just aren't good enough.
We want to create a regex-based token system, that will resolve just before sending. You should be able to define any number of such tokens in the following way:
We'll be using the
civicrm_alterMailContent
hook (docs)