You are here

function domain_views_handler_argument_domain_access_gid::query in Domain Views 7

Filter the query properly.

Overrides views_handler_argument::query

File

includes/domain_views_handler_argument_domain_access_gid.inc, line 38
Interface between domain_views.module and views.module.

Class

domain_views_handler_argument_domain_access_gid
Argument for domain ids stored in the database currently active domain and any domain.

Code

function query($group_by = FALSE) {
  parent::query($group_by);
  $table = $this
    ->ensure_my_table();
  if ($table == 'domain_access') {
    $this->query
      ->add_where(0, "{$table}.realm", 'domain_id');
  }
}