Since (shortly before) v1.4 (which built upon a change in Token v1.14), the Pathauto admin screen gives form elements for tokens of the form [save-lineage-termpath-raw:vid].
Meaning you can't change any tokens anymore through the Pathauto admin interface, without having to delete that token.
The issue is that nowadays, hook_token_list() must return:
- exactly the token value
- OR a string ending with '_N' or '-N'. (Not ':N' and certainly not ':vid'.)
Since I guess we don't want to change the tokens themselves (and I'm guessing they are fit for D7), it seems best to have hook_token_list() just return a list of tokens for every HS-enabled vid. And hold out until D7 'fixes' that.
This patch also fixes some descriptions.
| Comment | File | Size | Author |
|---|---|---|---|
| hs_taxonomy-token-list.patch | 3.68 KB | roderik |
Comments
Comment #1
roderikcorrection
"gives form elements" -> "yields form errors" for tokens like [save-lineage-termpath-raw:vid].
Comment #2
blairski commentedI have applied the patch and it works.
Comment #3
kpastore commentedAttempted this patch on 7.x-3.0-alpha5 without success. Just a WSOD.
Comment #4
roderikI'm not surprised. The patch is explicitly for 6.x. hook_token_values() (which this patch fixes) does not exist any more.
If your problem is not
... then I think you're posting in the wrong issue.
If your problem is this... well, someone needs to reinvestigate the interaction with core D7 tokens which is different from the D6 token module.
Comment #5
benmirkhah commentedPatch worked for me, thanks roderik, surprised why it's not fixed in the current branch yet
Comment #6
goldTidying up the issue queue. The 6.x version is no longer supported. Only reopen this if it also applies to the 7.x.