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

CommentFileSizeAuthor
token-recursive-merge.patch1.32 KBsmk-ka

Comments

eaton’s picture

Status: Needs review » Fixed

Thanks. Now integrated into the module.

Anonymous’s picture

Status: Fixed » Closed (fixed)