function location_handler_filter_location_country::get_value_options in Location 7.4
Same name and namespace in other branches
- 6.3 handlers/location_handler_filter_location_country.inc \location_handler_filter_location_country::get_value_options()
- 7.5 handlers/location_handler_filter_location_country.inc \location_handler_filter_location_country::get_value_options()
- 7.3 handlers/location_handler_filter_location_country.inc \location_handler_filter_location_country::get_value_options()
Child classes should be used to override this function and set the 'value options', unless 'options callback' is defined as a valid function or static public method to generate these values.
This can use a guard to be used to reduce database hits as much as possible.
Return value
Return the stored values in $this->value_options if someone expects it.
Overrides views_handler_filter_in_operator::get_value_options
1 call to location_handler_filter_location_country::get_value_options()
- location_handler_filter_location_country::value_form in handlers/
location_handler_filter_location_country.inc - Provide widgets for filtering by country.
File
- handlers/
location_handler_filter_location_country.inc, line 22
Class
- location_handler_filter_location_country
- Filter on country.
Code
function get_value_options() {
if (isset($this->value_options)) {
return;
}
$this->value_options = location_get_iso3166_list();
}