You are here

function uc_coupon_cart_display in Ubercart Discount Coupons 6

Implementation of hook_cart_display().

File

./uc_coupon.module, line 1259
Provides discount coupons for Ubercart.

Code

function uc_coupon_cart_display($item) {
  return array(
    '#module' => 'uc_coupon',
    // Not used in core, but allows modules/themes to act on this special cart item.
    'nid' => array(
      '#type' => 'value',
      '#value' => 0,
    ),
    'title' => array(
      '#value' => $item->title,
    ),
    '#total' => $item->price,
  );
}