hook_token_info_alter

Versions
mediamosa-21
hook_token_info_alter(&$data)

Alter the metadata about available placeholder tokens and token types.

See also

hook_token_info()

Parameters

$data The associative array of token definitions from hook_token_info().

Related topics

Code

modules/system/system.api.php, line 3188

<?php
function hook_token_info_alter(&$data) {
  // Modify description of node tokens for our site.
  $node['nid'] = array(
    'name' => t("Node ID"),
    'description' => t("The unique ID of the article."),
  );
  $node['title'] = array(
    'name' => t("Title"),
    'description' => t("The title of the article."),
  );

  // Chained tokens for nodes.
  $node['created'] = array(
    'name' => t("Date created"),
    'description' => t("The date the article was posted."),
    'type' => 'date',
  );
}
?>