Skip to content

Commit

Permalink
Merge pull request #21091 from totten/master-schedui-acttok
Browse files Browse the repository at this point in the history
Scheduled Reminders UI - Show more activity tokens in admin GUI
  • Loading branch information
mattwire authored Aug 11, 2021
2 parents 38edbd0 + f9b991f commit c76a1c3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CRM/Admin/Form/ScheduleReminders.php
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,14 @@ public function parseActionSchedule($values) {
* @return array
*/
public function listTokens() {
$tokens = CRM_Core_SelectValues::contactTokens();
$tokens = array_merge(CRM_Core_SelectValues::activityTokens(), $tokens);
$tokenProcessor = new \Civi\Token\TokenProcessor(\Civi::dispatcher(), [
'controller' => get_class(),
'smarty' => FALSE,
'schema' => ['activityId'],
]);
$tokens = $tokenProcessor->listTokens();

$tokens = array_merge(CRM_Core_SelectValues::contactTokens(), $tokens);
$tokens = array_merge(CRM_Core_SelectValues::eventTokens(), $tokens);
$tokens = array_merge(CRM_Core_SelectValues::membershipTokens(), $tokens);
$tokens = array_merge(CRM_Core_SelectValues::contributionTokens(), $tokens);
Expand Down

0 comments on commit c76a1c3

Please sign in to comment.