Closed (fixed)
Project:
Token
Version:
5.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
7 Mar 2007 at 17:54 UTC
Updated:
24 Mar 2007 at 22:02 UTC
This issue affects theme_token_help() when two or more token_list() hooks returns tokens for the same category. array_merge() will then overwrite the previous entries for that category instead of appending them. For some unknown reason array_merge_recursive() didn't work either, therefore the result array is built manually.
Example:
foo_token_list() returns $tokens['user']['some-token'];
bar_token_list() returns $tokens['user']['another-token'];
Then theme_token_help() will only list another-token.
This is a requirement for the upcoming profile.module support.
--
Stefan Kudwien
www.unleashedmind.com
| Comment | File | Size | Author |
|---|---|---|---|
| token-recursive-merge.patch | 1.32 KB | smk-ka |
Comments
Comment #1
eaton commentedThanks. Now integrated into the module.
Comment #2
(not verified) commented