You are here

function publication_date_token_info_alter in Publication Date 7

Same name and namespace in other branches
  1. 8.2 publication_date.tokens.inc \publication_date_token_info_alter()
  2. 8 publication_date.tokens.inc \publication_date_token_info_alter()
  3. 7.2 publication_date.tokens.inc \publication_date_token_info_alter()

Implements hook_token_info().

File

./publication_date.tokens.inc, line 11
Builds placeholder replacement tokens for node-related data.

Code

function publication_date_token_info_alter(&$data) {
  $data['tokens']['node']['published'] = array(
    'name' => t("Date published"),
    'description' => t("The date the node was published."),
    'type' => 'date',
  );
}