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.
Just like hook_token_info and hook_token, hook_token_info_alter() should be included in the 'tokens' group of system_hook_info so that it can be included in modulename.tokens.inc files automatically.
Comment | File | Size | Author |
---|---|---|---|
#1 | 734942-system-hook_token_info-group-D7.patch | 594 bytes | Dave Reid |
Comments
Comment #1
Dave ReidComment #2
Dave ReidComment #3
dawehnerIs this true for tokens? I think they are runned often. But i think the hook is large, see taxonomy or node for example,
Additional your argument makes sense.
Comment #4
webchickThis seems like a straight-forward omission correction. Committed to HEAD.
For dereine's question, I can't remember exactly how we arrived at this but there was a big discussion back in the original patch that added this 'group' stuff. I think it was more the size of the arrays.