API page: https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func...

I notice some $info['tokens'] returned by token_token_info set a some keys not documented here. For example 'dynamic' in the 'array' group and 'restricted' in the 'user' group but it is not documented. token_token_info_alter also seems to set 'dynamic' for chaining and sets a 'module' key for others.

Comments

jhodgdon’s picture

Status: Active » Closed (works as designed)

These are not coming from core implementations of hook_token_info(), so they are not part of the core hook_token_info() documentation. Presumably these extra pieces of information are supplied/used by contrib modules.

phanos’s picture

jhodgdon: thanks for taking the time to look at it. You are right, those keys are only being set in the token contrib module, I'll take a look at their documentation.