You are here

function commerce_registration_token_info_alter in Commerce Registration 7.2

Same name and namespace in other branches
  1. 7 commerce_registration.tokens.inc \commerce_registration_token_info_alter()

Implements hook_token_info_alter().

File

./commerce_registration.tokens.inc, line 27
Token support for Commerce Registration.

Code

function commerce_registration_token_info_alter(&$data) {

  // Add token for Commerce Order to Registrations.
  $data['tokens']['registration']['commerce_order'] = array(
    'name' => t('Commerce Order ID'),
    'description' => t('The Commerce order number that the registration belongs to.'),
  );
}