function theme_uc_coupon_discount in Ubercart Discount Coupons 7.2
Same name and namespace in other branches
- 7.3 uc_coupon.module \theme_uc_coupon_discount()
Theme for a coupon discount.
Parameters
$variables: 'coupon' => The coupon whose discount is to be themed. 'currency' => TRUE to include currency symbols.
5 theme calls to theme_uc_coupon_discount()
- template_preprocess_uc_coupon_certificate in ./
uc_coupon.module - Preprocess template for a printed coupon certificate.
- uc_coupon_display in ./
uc_coupon.admin.inc - Display a brief overview of system coupons
- uc_coupon_handler_field_value::render in views/
uc_coupon_handler_field_value.inc - Render the field.
- uc_coupon_tokens in ./
uc_coupon.tokens.inc - Implements hook_tokens().
- uc_coupon_view in ./
uc_coupon.admin.inc - View coupon details.
File
- ./
uc_coupon.module, line 318
Code
function theme_uc_coupon_discount($variables) {
$coupon = $variables['coupon'];
$currency = isset($variables['currency']) ? $variables['currency'] : TRUE;
return _uc_coupon_format_discount($coupon, $currency);
}