og_handler_relationship.inc in Organic groups 7
Contains various relationship handlers.
File
includes/views/og_handler_relationship.incView source
<?php
/**
* @file
* Contains various relationship handlers.
*/
/**
* Specialized relationship handler associating groups and their entity.
*
* @ingroup views
*/
class og_handler_relationship extends views_handler_relationship {
/**
* Called to implement a relationship in a query.
*/
function query() {
$entity = $this->definition['entity'];
$this->definition['extra'][] = array(
'field' => 'entity_type',
'value' => $this->definition['entity'],
);
parent::query();
}
}
Classes
Name | Description |
---|---|
og_handler_relationship | Specialized relationship handler associating groups and their entity. |