2 * Implements hook_token_info_alter().
4 function {{ machine_name }}_token_info_alter(&$data) {
5 // Modify description of node tokens for our site.
6 $data['tokens']['node']['nid'] = [
7 'name' => t("Node ID"),
8 'description' => t("The unique ID of the article."),
10 $data['tokens']['node']['title'] = [
12 'description' => t("The title of the article."),
15 // Chained tokens for nodes.
16 $data['tokens']['node']['created'] = [
17 'name' => t("Date created"),
18 'description' => t("The date the article was posted."),