Jump to:
| Project: | Hierarchical Select |
| Version: | 6.x-3.x-dev |
| Component: | Code - Taxonomy |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
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.
| Attachment | Size |
|---|---|
| hs_taxonomy-token-list.patch | 3.68 KB |
Comments
#1
correction
"gives form elements" -> "yields form errors" for tokens like [save-lineage-termpath-raw:vid].
#2
I have applied the patch and it works.