systopia / de.systopia.mailingtools

CiviCRM Extension to support mailings
GNU Affero General Public License v3.0
1 stars 2 forks source link

Postprocessing Tokens #6

Open bjendres opened 4 years ago

bjendres commented 4 years ago

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:

  1. regular expression (with named groups)
  2. code for the replacement string (either an API or a static function call)

We'll be using the civicrm_alterMailContent hook (docs)