You are here

class views_handler_filter_system_drupal_core in Views System 6.3

Same name and namespace in other branches
  1. 6.2 views/handlers/views_handler_filter_system_drupal_core.inc \views_handler_filter_system_drupal_core
  2. 7.3 views/handlers/views_handler_filter_system_drupal_core.inc \views_handler_filter_system_drupal_core

Provides Drupal core filter for the system item.

Hierarchy

Expanded class hierarchy of views_handler_filter_system_drupal_core

1 string reference to 'views_handler_filter_system_drupal_core'
views_system_views_data_alter in views/views_system.views.inc
Implementation of hook_views_data_alter().

File

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

View source
class views_handler_filter_system_drupal_core extends views_handler_filter_boolean_operator {
  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} {$operator} ('" . implode("', '", array_keys(_views_system_get_drupal_core())) . "')");
  }

}

Members