function course_uc_token_info in Course 7
Same name and namespace in other branches
- 8.3 modules/course_uc/course_uc.module \course_uc_token_info()
- 8.2 modules/course_uc/course_uc.module \course_uc_token_info()
- 7.2 modules/course_uc/course_uc.module \course_uc_token_info()
- 3.x modules/course_uc/course_uc.module \course_uc_token_info()
- 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,
),
);
}