function hook_api_tokens_info_alter in API Tokens 7
Same name and namespace in other branches
- 8.2 api_tokens.api.php \hook_api_tokens_info_alter()
- 8 api_tokens.api.php \hook_api_tokens_info_alter()
Alters API token definitions.
Parameters
array $tokens: Associative array of API token definitions.
1 invocation of hook_api_tokens_info_alter()
- api_tokens_collect_tokens in ./
api_tokens.module - Collects information on all the tokens in the system.
File
- ./
api_tokens.api.php, line 87 - Hooks provided by the API Tokens module.
Code
function hook_api_tokens_info_alter(&$tokens) {
// Override "demo" token handler.
$tokens['demo']['handler'] .= '_override';
}