Skip to content
Snippets Groups Projects
Commit ceabe187 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #734944 by Dave Reid: documentation for hook_token_info_alter() is incorrect.

parent a6012a20
No related branches found
No related tags found
No related merge requests found
......@@ -3819,17 +3819,17 @@ function hook_batch_alter(&$batch) {
*/
function hook_token_info_alter(&$data) {
// Modify description of node tokens for our site.
$node['nid'] = array(
$data['tokens']['node']['nid'] = array(
'name' => t("Node ID"),
'description' => t("The unique ID of the article."),
);
$node['title'] = array(
$data['tokens']['node']['title'] = array(
'name' => t("Title"),
'description' => t("The title of the article."),
);
// Chained tokens for nodes.
$node['created'] = array(
$data['tokens']['node']['created'] = array(
'name' => t("Date created"),
'description' => t("The date the article was posted."),
'type' => 'date',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment