function publication_date_token_info_alter in Publication Date 8
Same name and namespace in other branches
- 8.2 publication_date.tokens.inc \publication_date_token_info_alter()
- 7.2 publication_date.tokens.inc \publication_date_token_info_alter()
- 7 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',
);
}