You are here

function course_uc_token_info in Course 7

Same name and namespace in other branches
  1. 8.3 modules/course_uc/course_uc.module \course_uc_token_info()
  2. 8.2 modules/course_uc/course_uc.module \course_uc_token_info()
  3. 7.2 modules/course_uc/course_uc.module \course_uc_token_info()
  4. 3.x modules/course_uc/course_uc.module \course_uc_token_info()
  5. 3.x modules/course_commerce/course_commerce.module \course_uc_token_info()

Implements hook_token_info().

File

modules/course_uc/course_uc.module, line 385

Code

function course_uc_token_info() {
  $tokens = array();
  $tokens['course-products-header'] = array(
    'name' => t('Course products header'),
    'description' => t('Text to show if there are course products in the cart.'),
  );
  $tokens['course-products'] = array(
    'name' => t('Course products links'),
    'description' => t('A link to the course products.'),
  );
  return array(
    'tokens' => array(
      'uc_order' => $tokens,
    ),
  );
}