Skip to content

Commit

Permalink
Specifiy audience for event tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Oct 7, 2021
1 parent 86eb0e7 commit 3616fa7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CRM/Event/Tokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,34 +49,39 @@ protected function getBespokeTokens(): array {
'type' => 'calculated',
'options' => NULL,
'data_type' => 'String',
'audience' => 'user',
],
'info_url' => [
'title' => ts('Event Info URL'),
'name' => 'info_url',
'type' => 'calculated',
'options' => NULL,
'data_type' => 'String',
'audience' => 'user',
],
'registration_url' => [
'title' => ts('Event Registration URL'),
'name' => 'registration_url',
'type' => 'calculated',
'options' => NULL,
'data_type' => 'String',
'audience' => 'user',
],
'contact_email' => [
'title' => ts('Event Contact Email'),
'name' => 'contact_email',
'type' => 'calculated',
'options' => NULL,
'data_type' => 'String',
'audience' => 'user',
],
'contact_phone' => [
'title' => ts('Event Contact Phone'),
'name' => 'contact_phone',
'type' => 'calculated',
'options' => NULL,
'data_type' => '',
'audience' => 'user',
],
];
}
Expand Down

0 comments on commit 3616fa7

Please sign in to comment.