'loc_block_id.phone_2_id.phone_type_id',
'loc_block_id.phone_2_id.phone_ext',
'loc_block_id.phone_2_id.phone_type_id:label',
- 'confirm_email_text',
- 'is_show_location',
'is_show_location:label',
- 'is_public',
'is_public:label',
'is_share',
'is_share:label',
'requires_approval',
'requires_approval:label',
'is_monetary:label',
- 'event_type_id:label',
'event_type_id:name',
'pay_later_text',
- 'pay_later_receipt',
'fee_label',
'custom.*',
], $this->getExposedFields()))
'state_province' => $event['loc_block_id.address_id.state_province_id:label'],
'postal_code' => $event['loc_block_id.address_id.postal_code'],
]);
- $tokens['location']['text/html'] = nl2br(trim($tokens['location']['text/plain']));
$tokens['info_url']['text/html'] = \CRM_Utils_System::url('civicrm/event/info', 'reset=1&id=' . $eventID, TRUE, NULL, FALSE, TRUE);
$tokens['registration_url']['text/html'] = \CRM_Utils_System::url('civicrm/event/register', 'reset=1&id=' . $eventID, TRUE, NULL, FALSE, TRUE);
$tokens['start_date']['text/html'] = !empty($event['start_date']) ? new DateTime($event['start_date']) : '';
$tokens['end_date']['text/html'] = !empty($event['end_date']) ? new DateTime($event['end_date']) : '';
$tokens['contact_email']['text/html'] = $event['loc_block_id.email_id.email'];
$tokens['contact_phone']['text/html'] = $event['loc_block_id.phone_id.phone'];
- // We use text/plain for fields which should be converted to html when used in html content.
- $tokens['confirm_email_text']['text/plain'] = $event['confirm_email_text'];
- $tokens['pay_later_text']['text/plain'] = $event['pay_later_text'];
foreach ($this->getTokenMetadata() as $fieldName => $fieldSpec) {
if (!isset($tokens[$fieldName])) {
event.loc_block_id.phone_id.phone :456 789
event.description :event description
event.location :15 Walton St<br />
-Emerald City, Maine 90210
+Emerald City, Maine 90210<br />
event.info_url :' . CRM_Utils_System::url('civicrm/event/info', NULL, TRUE) . '&reset=1&id=1
event.registration_url :' . CRM_Utils_System::url('civicrm/event/register', NULL, TRUE) . '&reset=1&id=1
event.pay_later_receipt :Please transfer funds to our bank account.