2 * Implements hook_token_info().
4 function {{ machine_name }}_token_info() {
7 'description' => t('Tokens related to individual nodes.'),
8 'needs-data' => 'node',
11 // Core tokens for nodes.
13 'name' => t("Node ID"),
14 'description' => t("The unique ID of the node."),
16 $node['title'] = array(
18 'description' => t("The title of the node."),
20 $node['edit-url'] = array(
21 'name' => t("Edit URL"),
22 'description' => t("The URL of the node's edit page."),
25 // Chained tokens for nodes.
26 $node['created'] = array(
27 'name' => t("Date created"),
28 'description' => t("The date the node was posted."),
31 $node['author'] = array(
32 'name' => t("Author"),
33 'description' => t("The author of the node."),
38 'types' => array('node' => $type),
39 'tokens' => array('node' => $node),