function uc_coupon_handler_field_actions::render in Ubercart Discount Coupons 7.2
Same name and namespace in other branches
- 6 views/uc_coupon_handler_field_actions.inc \uc_coupon_handler_field_actions::render()
- 7.3 views/uc_coupon_handler_field_actions.inc \uc_coupon_handler_field_actions::render()
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- views/
uc_coupon_handler_field_actions.inc, line 12 - Views handler: Coupon actions field.
Class
- uc_coupon_handler_field_actions
- Return a coupon value as price or percentage.
Code
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', array(
'coupon' => $coupon,
));
}