You are here

function og_handler_relationship::query in Organic groups 7

Same name and namespace in other branches
  1. 7.2 includes/views/handlers/og_handler_relationship.inc \og_handler_relationship::query()

Called to implement a relationship in a query.

Overrides views_handler_relationship::query

File

includes/views/og_handler_relationship.inc, line 19
Contains various relationship handlers.

Class

og_handler_relationship
Specialized relationship handler associating groups and their entity.

Code

function query() {
  $entity = $this->definition['entity'];
  $this->definition['extra'][] = array(
    'field' => 'entity_type',
    'value' => $this->definition['entity'],
  );
  parent::query();
}