function location_handler_field_location_address::query in Location 7.3
Called to add the field to a query.
Overrides views_handler_field::query
File
- handlers/
location_handler_field_location_address.inc, line 41 - Field handler to display a complete address.
Class
Code
function query() {
if (empty($this->options['exclude_cck'])) {
parent::query();
return;
}
$genid_field = $this->query
->ensure_table('location_instance', $this->relationship) . ".genid";
$this->query
->add_where(0, "{$genid_field} NOT LIKE '%cck%' OR {$genid_field} IS NULL");
}