add theme_token_list to support module development integrated with token
providen a centralized way to theme available replacements list
for example
...
$token_list = token_get_list('field');
unset($token_list['node reference']['link']); // remove html link if it doesn't makes sense
// remove other available replacements that won't make sense in this context
$form['node_link']['hover_title_replacements'] = array(
'#value' => theme('token_list', $token_list),
);
this certainly will avoid duplicated code and easier future support for other features
PS: a similar (but not the same) issue exists for D5 #163275: theme_token_help for a specific node.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 2010-03-07_theme_token_list[unix].patch | 1011 bytes | arhak |
| 2009-09-14 theme_token_list.patch | 1.11 KB | arhak |
Comments
Comment #1
dave reidComment #3
arhak commentedthat patch still applies with fuzz 1,
the space in the filename seems to be a problem
renamed and rerolled (now should cleanly apply)
Comment #4
dave reidComment #5
dave reidBTW you should be using theme('token_tree') for D7 and D6 now.
Comment #6
dave reidThis is a won't fix.