You are here

function uc_product_kit_handler_filter_product_kit::query in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 uc_product_kit/views/uc_product_kit_handler_filter_product_kit.inc \uc_product_kit_handler_filter_product_kit::query()
  2. 6.2 uc_product_kit/views/uc_product_kit_handler_filter_product_kit.inc \uc_product_kit_handler_filter_product_kit::query()

Overrides views_handler_field::query().

Overrides views_handler_filter_boolean_operator::query

File

uc_product_kit/views/uc_product_kit_handler_filter_product_kit.inc, line 16
Views handler: Node filter on "product-kit-ness".

Class

uc_product_kit_handler_filter_product_kit
Filters nodes based on whether they have an entry in the uc_product_kit table.

Code

function query() {
  $this->query
    ->add_field('node', 'type');
  $this->query
    ->add_where($this->options['group'], "node.type " . (empty($this->value) ? "NOT " : "") . "IN ('product_kit')");
}