function commerce_registration_token_info in Commerce Registration 7.2
Same name and namespace in other branches
- 7.3 commerce_registration.tokens.inc \commerce_registration_token_info()
Implements hook_token_info().
File
- ./
commerce_registration.tokens.inc, line 10 - Token support for Commerce Registration.
Code
function commerce_registration_token_info() {
$info['types']['commerce-registration'] = array(
'name' => t('Commerce Registration'),
'description' => t('Tokens related to commerce registrations.'),
);
$info['tokens']['commerce-registration']['registration-index'] = array(
'name' => t('Registration Index'),
'description' => t('The numerical index of the registration for a product.'),
);
return $info;
}