Working on NodeFlag I need to allow users access to node, flag, and user tokens for the messages. However, the way the theme_token_help and token_get_list work currently you can select 'all' or a single token type. This patch changes theme_token_help and token_get_list to expect an array of token types like token_replace_multiple. It also changes the default value of types back to global instead of all for theme_token_help and token_get_list.
This patch changes the function prototypes, so modules depending on token.module will need to be updated.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | token-help-DRUPAL-6--1.patch | 3.45 KB | dopry |
| #3 | token-help-DRUPAL-6--1.patch | 1.93 KB | dopry |
| #1 | token-help.patch | 3.32 KB | dopry |
Comments
Comment #1
dopry commentedI bet it helps if I upload the patch... oh this patch also splits token_help and theme_token_help
Comment #2
gregglesJust for the record, I love this conceptually, and this should be on a 5.x-2.x branch (haven't tested yet, though).
Comment #3
dopry commentedHere is a patch against 6.x.
Comment #4
dopry commentedHere is on for D6 with the doc block updates as well since I forgot them when rewriting the patch.
Comment #5
dave reidComment #7
dave reidThe module currently allows you to pass an array of types. I don't see what's needed here.