function basic_cart_handler_filter_product::query in Basic cart 7.3
Same name and namespace in other branches
- 7.2 views/basic_cart_handler_filter_product.inc \basic_cart_handler_filter_product::query()
Overrides views_handler_field::query().
Overrides views_handler_filter_boolean_operator::query
File
- views/
basic_cart_handler_filter_product.inc, line 16 - Views handler: Node filter on "product-ness".
Class
- basic_cart_handler_filter_product
- Filters product nodes .
Code
function query() {
$types = basic_cart_product_types();
$this->query
->add_field('node', 'type');
$this->query
->add_where($this->options['group'], 'node.type', $types, empty($this->value) ? 'NOT IN' : 'IN');
}