function uc_roles_token_list in Ubercart 6.2
Same name and namespace in other branches
- 5 uc_roles/uc_roles.module \uc_roles_token_list()
Implements hook_token_list().
File
- uc_roles/
uc_roles.module, line 575
Code
function uc_roles_token_list($type = 'all') {
$tokens = array();
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;
}