You are here

function node_noindex_filter_handler::query in Node Noindex 6

Same name and namespace in other branches
  1. 7 node_noindex_filter_handler.inc \node_noindex_filter_handler::query()

File

./node_noindex_filter_handler.inc, line 13
Filter by whether a node is indexed or not.

Class

node_noindex_filter_handler
@file Filter by whether a node is indexed or not.

Code

function query() {
  $this
    ->ensure_my_table();
  if ($this->value == 1) {
    $this->query
      ->add_where($this->options['group'], "{$this->table_alias}.noindex is NULL || {$this->table_alias}.noindex = 0");
  }
  else {
    $this->query
      ->add_where($this->options['group'], "{$this->table_alias}.noindex = 1");
  }
}