Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Recently I came across a module which uses a ":" in it's token key name, "user:profile_my_field_name", which when combined with the token category, became "user:user:profile_my_field_name". Now I think that module (token_profile) is probably wrong, but I reckon ctools module should be able to handle it a bit better.
Currently "user:user:profile_my_field_name" is treated as "user:user" by the ctools module which causes the user's username to be printed out rather than the desired profile field. The attached patch fixes this.
Comment | File | Size | Author |
---|---|---|---|
#1 | ctools_token_parsing.patch | 541 bytes | stella |
ctools_token_parsing.patch | 637 bytes | stella |
Comments
Comment #1
stella CreditAttribution: stella commentederrr re-roll from correct directory
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedI already did this in D7, but I guess I didn't backport it to D6 like I thought I had.
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted to D6 now.