You are here

function views_handler_argument_term_edge_parent_tid::query in Taxonomy Edge 7.2

Set up the query for this argument.

The argument sent may be found at $this->argument.

Parameters

bool $group_by: Whether the query uses a group-by.

Overrides views_handler_argument_numeric::query

File

views_taxonomy_edge/handlers/views_handler_argument_term_edge_parent_tid.inc, line 7

Class

views_handler_argument_term_edge_parent_tid
@file

Code

function query() {
  $this
    ->ensure_my_table();
  $subquery = db_select('taxonomy_term_edge_path', 'path_parent')
    ->fields('path_parent', array(
    'pid',
  ))
    ->condition('tid', $this->value);
  $this->query
    ->add_where(0, "{$this->table_alias}.{$this->real_field}", $subquery, 'IN');
}