function theme_commerce_coupon_type_admin_overview in Commerce Coupon 7.2
Builds an overview of a product type for display to an administrator.
Parameters
array $variables: An array of variables used to generate the display; by default includes the type key with a value of the product type array.
1 theme call to theme_commerce_coupon_type_admin_overview()
- commerce_coupon_types_overview_page in includes/
commerce_coupon.admin.inc - Menu callback: display an overview of available types.
File
- includes/
commerce_coupon.admin.inc, line 100 - Administrative forms and callbacks for Commerce Coupon.
Code
function theme_commerce_coupon_type_admin_overview(array $variables) {
$coupon_type = $variables['coupon_type'];
$output = check_plain($coupon_type['label']);
$output .= ' <small>' . t('(Machine name: @type)', array(
'@type' => $coupon_type['type'],
)) . '</small>';
return $output;
}