Commit ceabe187 authored by Dries's avatar Dries

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

parent a6012a20
......@@ -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',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment