function event_calendar_token_info in Event Calendar 7
Implements hook_token_info().
File
- ./
event_calendar.tokens.inc, line 11 - Builds placeholder replacement tokens for event_calendar-related data.
Code
function event_calendar_token_info() {
$type = array(
'name' => t('event_calendar'),
'description' => t('Tokens related to individual content items, or "event_calendars".'),
'needs-data' => 'event_calendar',
);
// Core tokens for event_calendars.
$event_calendar['start_date'] = array(
'name' => t("Event start date"),
'description' => t('The start date of events in event_calendar.'),
);
$event_calendar['end_date'] = array(
'name' => t("Event end date"),
'description' => t('The start date of events in event_calendar.'),
);
$event_calendar['event_status'] = array(
'name' => t("Event status"),
'description' => t('The Status of events in event_calendar'),
);
$event_calendar['approval_url'] = array(
'name' => t("Event approval URL"),
'description' => t('The URL for admin to approve events'),
);
return array(
'types' => array(
'event_calendar' => $type,
),
'tokens' => array(
'event_calendar' => $event_calendar,
),
);
}