function commerce_registration_token_info in Commerce Registration 7.3
Same name and namespace in other branches
- 7.2 commerce_registration.tokens.inc \commerce_registration_token_info()
Implements hook_token_info().
File
- ./
commerce_registration.tokens.inc, line 10 - Add token for Commerce Order to Registrations.
Code
function commerce_registration_token_info() {
$data['tokens']['registration']['commerce_line_item_id'] = array(
'name' => t('Commerce Line Item ID'),
'description' => t('The Commerce line item ID to which the registration belongs.'),
);
$data['tokens']['registration']['commerce_line_item'] = array(
'name' => t('Commerce Line Item ID'),
'description' => t('The Commerce line item to which the registration belongs.'),
'type' => 'commerce-line-item',
);
return $data;
}