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.
I had problems using CCK tokens in some pages like Pathauto configuration page. CCK tokens are not available.
I noticed token hook placed in "includes/content.token.inc" are not called cause hook_init() is not called when token list are generated.
To avoid this we need to include token file directly in content.module loading.
I attach patch.
Comment | File | Size | Author |
---|---|---|---|
cck-token_include_file.patch | 1.14 KB | sjovanig |
Comments
Comment #1
sjovanig CreditAttribution: sjovanig commentedComment #2
MegaChriz CreditAttribution: MegaChriz commentedSeems this was fixed in #1533506: Tokens not available in hook_update_N()