You are here

function views_handler_filter_system_drupal_core::query in Views System 7.3

Same name and namespace in other branches
  1. 6.3 views/handlers/views_handler_filter_system_drupal_core.inc \views_handler_filter_system_drupal_core::query()
  2. 6.2 views/handlers/views_handler_filter_system_drupal_core.inc \views_handler_filter_system_drupal_core::query()

Add this filter to the query.

Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.

Overrides views_handler_filter_boolean_operator::query

File

views/handlers/views_handler_filter_system_drupal_core.inc, line 17
Views filter handler for the views_system module.

Class

views_handler_filter_system_drupal_core
Provides Drupal core filter for the system item.

Code

function query() {
  $this
    ->ensure_my_table();
  $field = "{$this->table_alias}.{$this->real_field}";
  $operator = empty($this->value) ? 'NOT IN' : 'IN';
  $this->query
    ->add_where($this->options['group'], $field, array_keys(_views_system_get_drupal_core()), $operator);
}