function uc_roles_token_list in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_roles/uc_roles.module \uc_roles_token_list()
Implementation of hook_token_list().
File
- uc_roles/
uc_roles.module, line 399 - Grants roles upon accepted payment of products
Code
function uc_roles_token_list($type = 'all') {
if ($type == 'uc_roles' || $type == 'ubercart' || $type == 'all') {
$tokens['uc_roles']['role-expiration-long'] = t('The role expiration date in long format');
$tokens['uc_roles']['role-expiration-medium'] = t('The role expiration date in medium format');
$tokens['uc_roles']['role-expiration-short'] = t('The role expiration date in short format');
$tokens['uc_roles']['role-name'] = t('The associated role name');
}
return $tokens;
}