Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postprocessing Tokens #6

Open
bjendres opened this issue Feb 13, 2020 · 0 comments
Open

Postprocessing Tokens #6

bjendres opened this issue Feb 13, 2020 · 0 comments
Labels
feature This is a new feature

Comments

@bjendres
Copy link
Member

bjendres commented Feb 13, 2020

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)

@bjendres bjendres added the feature This is a new feature label Feb 13, 2020
bjendres added a commit that referenced this issue Feb 14, 2020
bjendres added a commit that referenced this issue Feb 14, 2020
bjendres added a commit that referenced this issue Feb 14, 2020
bjendres added a commit that referenced this issue Feb 14, 2020
bjendres added a commit that referenced this issue Feb 14, 2020
bjendres added a commit that referenced this issue Mar 27, 2020
bjendres added a commit that referenced this issue Mar 27, 2020
bjendres added a commit that referenced this issue Apr 3, 2020
bjendres added a commit that referenced this issue Apr 3, 2020
bjendres added a commit that referenced this issue Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This is a new feature
Projects
None yet
Development

No branches or pull requests

1 participant