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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid’s picture

Status: Active » Needs review
FileSize
594 bytes
Dave Reid’s picture

Issue tags: +token
dawehner’s picture

Status: Needs review » Reviewed & tested by the community

In general, hooks that are rarely invoked and/or are very large should be placed in a separate include file

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

webchick’s picture

Status: Reviewed & tested by the community » Fixed

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

Status: Fixed » Closed (fixed)
Issue tags: -token

Automatically closed -- issue fixed for 2 weeks with no activity.