function scheduler_token_info in Scheduler 7
Same name and namespace in other branches
- 8 scheduler.tokens.inc \scheduler_token_info()
- 2.x scheduler.tokens.inc \scheduler_token_info()
Implements hook_token_info().
File
- ./
scheduler.tokens.inc, line 11 - Builds placeholder replacement tokens for node scheduler data.
Code
function scheduler_token_info() {
$info['tokens']['node']['scheduler-publish'] = array(
'name' => t('Publish on date'),
'description' => t("The date the node will be published."),
'type' => 'date',
);
$info['tokens']['node']['scheduler-unpublish'] = array(
'name' => t('Unpublish on date'),
'description' => t("The date the node will be unpublished."),
'type' => 'date',
);
return $info;
}