function datereminder_token_info in Date Reminder 7
Implements hook_token_info().
@returns array Array describing the types of tokens supported.
File
- ./
datereminder.module, line 684 - Support for reminders for nodes with dates.
Code
function datereminder_token_info() {
$tokens = array();
$tokens['next-short'] = array(
'name' => t('Next date, short form'),
'description' => t('The date of the next occurrance of this event, short form.'),
);
$tokens['next-medium'] = array(
'name' => t('Next date, medium form'),
'description' => t('The date of the next occurrance of this event, medium form.'),
);
$tokens['next-long'] = array(
'name' => t('Next date, long form'),
'description' => t('The date of the next occurrance of this event, long form.'),
);
$type = array(
'name' => t('Date reminders'),
'description' => t('Information about upcoming events when sending reminders.'),
'needs-data' => 'datereminder',
);
return array(
'tokens' => array(
'datereminder' => $tokens,
),
'types' => array(
'datereminder' => $type,
),
);
}