You are here

function scheduler_token_info in Scheduler 8

Same name and namespace in other branches
  1. 7 scheduler.tokens.inc \scheduler_token_info()
  2. 2.x scheduler.tokens.inc \scheduler_token_info()

Implements hook_token_info().

File

./scheduler.tokens.inc, line 13
Builds placeholder replacement tokens for node scheduler data.

Code

function scheduler_token_info() {
  $info['tokens']['node']['scheduler-publish'] = [
    'name' => t('Publish on date'),
    'description' => t("The date the node will be published."),
    'type' => 'date',
  ];
  $info['tokens']['node']['scheduler-unpublish'] = [
    'name' => t('Unpublish on date'),
    'description' => t("The date the node will be unpublished."),
    'type' => 'date',
  ];
  return $info;
}