function scheduler_token_list in Scheduler 6
Implementation of hook_token_list().
File
- ./
scheduler.module, line 1065
Code
function scheduler_token_list($type = 'all') {
if (!function_exists("token_get_date_token_values") || !function_exists("token_get_date_token_info")) {
return array();
}
$tokens = array();
$tokens['node'] = array();
if ($type == 'node' || $type == 'all') {
$tokens['node'] += token_get_date_token_info(t('Publish on'), 'scheduler-publish-');
$tokens['node'] += token_get_date_token_info(t('Unpublish on'), 'scheduler-unpublish-');
}
return $tokens;
}