function domain_views_handler_field_domain_id::query in Domain Views 7
Called to add the field to a query.
Overrides views_handler_field::query
File
- includes/
domain_views_handler_field_domain_id.inc, line 72 - Interface between domain_views.module and views.module.
Class
- domain_views_handler_field_domain_id
- Field handler to provide simple renderer that allows linking to a domain.
Code
function query() {
parent::query();
// The {domain_access} table uses GID instead of DOMAIN_ID.
if (isset($this->query->fields['domain_access_gid'])) {
$this->query->fields['domain_access_domain_id']['field'] = 'gid';
}
}