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.

CommentFileSizeAuthor
hs_taxonomy-token-list.patch3.68 KBroderik

Comments

roderik’s picture

correction
"gives form elements" -> "yields form errors" for tokens like [save-lineage-termpath-raw:vid].

blairski’s picture

I have applied the patch and it works.

kpastore’s picture

Version: 6.x-3.x-dev » 7.x-3.0-alpha5

Attempted this patch on 7.x-3.0-alpha5 without success. Just a WSOD.

roderik’s picture

Version: 7.x-3.0-alpha5 » 6.x-3.x-dev

I'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

you can't change any tokens anymore through the Pathauto admin interface, without having to delete that token.

... 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.

benmirkhah’s picture

Patch worked for me, thanks roderik, surprised why it's not fixed in the current branch yet

gold’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

Tidying up the issue queue. The 6.x version is no longer supported. Only reopen this if it also applies to the 7.x.