function courier_token_info in Courier 8
Same name and namespace in other branches
- 2.x 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;
}