Helper extension for sites that relied on token anomalies pre 5.43
This extension may help sites if they relied on oddball code in core - namely
- passing 'case_id' to token hooks and
- assigning the contact as a smarty variable to the template, as returned by the rendered hooks.
- Whoa - when you DO pass case_id to token hooks it returns the wrong contact.... this appears to be the behaviour we are 'saving'
- Assigning the contact seems kinda pointless since only the fields that there are tokens for are in the return values
- oddly I couldn't make the define condition true. I just hacked past it to test....
The extension is licensed under AGPL-3.0.
- PHP v7.2+
- CiviCRM (FIXME: Version number)
Learn more about installing CiviCRM extensions in the CiviCRM Sysadmin Guide.
Sysadmins and developers may download the .zip
file for this extension and
install it with the command-line tool cv.
cd <extension-dir>
cv dl legacytokenhelper@https://github.com/FIXME/legacytokenhelper/archive/master.zip
Sysadmins and developers may clone the Git repo for this extension and install it with the command-line tool cv.
git clone https://github.com/FIXME/legacytokenhelper.git
cv en legacytokenhelper
(* FIXME: Where would a new user navigate to get started? What changes would they see? *)