You are here

class uc_coupon_handler_field_actions in Ubercart Discount Coupons 6

Same name and namespace in other branches
  1. 7.3 views/uc_coupon_handler_field_actions.inc \uc_coupon_handler_field_actions
  2. 7.2 views/uc_coupon_handler_field_actions.inc \uc_coupon_handler_field_actions

Return a coupon value as price or percentage.

Hierarchy

Expanded class hierarchy of uc_coupon_handler_field_actions

1 string reference to 'uc_coupon_handler_field_actions'
uc_coupon_views_data in views/uc_coupon.views.inc
Implementation of hook_views_data().

File

views/uc_coupon_handler_field_actions.inc, line 11
Views handler: Coupon actions field.

View source
class uc_coupon_handler_field_actions extends views_handler_field {
  function render($values) {
    $coupon = new stdClass();
    $coupon->cid = $values->{$this->field_alias};
    $coupon->name = $values->{$this->aliases['name']};
    $coupon->bulk = $values->{$this->aliases['bulk']};
    return theme('uc_coupon_actions', $coupon);
  }

}

Members