function uc_coupon_handler_filter_product_type::get_value_options in Ubercart Discount Coupons 6
Same name and namespace in other branches
- 7.3 views/uc_coupon_handler_filter_product_type.inc \uc_coupon_handler_filter_product_type::get_value_options()
- 7.2 views/uc_coupon_handler_filter_product_type.inc \uc_coupon_handler_filter_product_type::get_value_options()
File
- views/
uc_coupon_handler_filter_product_type.inc, line 11 - Views handler: Coupon filter on "product-type".
Class
- uc_coupon_handler_filter_product_type
- Filter coupons based on what product types they apply to
Code
function get_value_options() {
$this->value_options = array();
foreach (module_invoke_all('product_types') as $type) {
$this->value_options[$type] = $type;
}
}