function addressfield_views_handler_field_administrative_area::query in Address Field 7
Called to add the field to a query.
Overrides views_handler_field::query
File
- views/
addressfield_views_handler_field_administrative_area.inc, line 9
Class
- addressfield_views_handler_field_administrative_area
- Defines a field handler that can display the administrative area name instead of the code.
Code
function query() {
parent::query();
$this->country_alias = $this->query
->add_field($this->table_alias, $this->definition['field_name'] . '_country');
}