function courier_token_info in Courier 2.x
Same name and namespace in other branches
- 8 courier.tokens.inc \courier_token_info()
Implements hook_token_info().
File
- ./
courier.tokens.inc, line 13 - Builds tokens for Courier.
Code
function courier_token_info() {
// Token types.
$tokens['types']['identity'] = [
'name' => t('Identities'),
'description' => t('Tokens for identities.'),
'needs-data' => 'identity',
];
$tokens['tokens']['identity']['label'] = [
'name' => t("Label"),
'description' => t("Label for an identity."),
];
return $tokens;
}