function matomo_token_info in Matomo Analytics 7.2
Same name and namespace in other branches
- 8 matomo.tokens.inc \matomo_token_info()
Implements hook_token_info().
File
- ./
matomo.tokens.inc, line 11 - Builds placeholder replacement tokens for user-related data.
Code
function matomo_token_info() {
$user['matomo-role-names'] = array(
'name' => t('User role names'),
'description' => t('The role names the user account is a member of as comma separated list.'),
'needs-data' => 'user',
);
$user['matomo-role-ids'] = array(
'name' => t('User role ids'),
'description' => t('The role ids the user account is a member of as comma separated list.'),
'needs-data' => 'user',
);
return array(
'tokens' => array(
'user' => $user,
),
);
}