You are here

function theme_uc_coupon_discount in Ubercart Discount Coupons 7.3

Same name and namespace in other branches
  1. 7.2 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.

6 theme calls to theme_uc_coupon_discount()
template_preprocess_uc_coupon_certificate in ./uc_coupon.module
Preprocess template for a printed coupon certificate.
UcCouponController::buildContent in ./uc_coupon.entity.inc
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_purchase_view in uc_coupon_purchase/uc_coupon_purchase.pages.inc
Display a list of purchased coupons.

... See full list

File

./uc_coupon.module, line 330
Provides discount codes and gift certificates for Ubercart.

Code

function theme_uc_coupon_discount($variables) {
  $coupon = $variables['coupon'];
  $currency = isset($variables['currency']) ? $variables['currency'] : TRUE;
  return _uc_coupon_format_discount($coupon, $currency);
}