You are here

function uc_coupon_handler_field_codes::option_definition in Ubercart Discount Coupons 7.2

Same name and namespace in other branches
  1. 6 views/uc_coupon_handler_field_codes.inc \uc_coupon_handler_field_codes::option_definition()
  2. 7.3 views/uc_coupon_handler_field_codes.inc \uc_coupon_handler_field_codes::option_definition()

Define option default values.

Overrides views_handler_field_prerender_list::option_definition

File

views/uc_coupon_handler_field_codes.inc, line 15
Views handler for a list of bulk codes based on a coupon

Class

uc_coupon_handler_field_codes
Generate a list of the codes associated with this coupon

Code

function option_definition() {
  $options = parent::option_definition();
  $options['max_num'] = array(
    'default' => 0,
  );
  $options['scope'] = array(
    'default' => 'all',
  );
  return $options;
}