Closed (fixed)
Project:
Token
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Sep 2008 at 09:35 UTC
Updated:
11 Sep 2008 at 03:36 UTC
I want to overwrite [page-title] from a custom module I've made, I've tried
$tokens['page-title'] = $my_var;
I think it isn't working due to the use of array_merge on line 266 of token.module.
$all = array_merge($tokens['global']['default'], $tokens[$type][$id]);
There's a reference to $options array in API.txt but no details of usage, can $options help me? Is there another ways to set [page-title] programatically?
Comments
Comment #1
j0hn-smith commentedI'm trying to overwrite in [page-title] in 'node' scope.
Comment #2
j0hn-smith commentedI think this is caused by the use of array_merge_recursive in module_invoke_all. I guess I'm trying to do something that I shouldn't be trying to do.