You are here

function location_handler_filter_location_country::get_value_options in Location 7.5

Same name and namespace in other branches
  1. 6.3 handlers/location_handler_filter_location_country.inc \location_handler_filter_location_country::get_value_options()
  2. 7.3 handlers/location_handler_filter_location_country.inc \location_handler_filter_location_country::get_value_options()
  3. 7.4 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

2 calls to location_handler_filter_location_country::get_value_options()
location_handler_filter_location_country::reduce_value_options in handlers/location_handler_filter_location_country.inc
When using exposed filters, we may be required to reduce the set.
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 21

Class

location_handler_filter_location_country
Filter on country.

Code

function get_value_options() {
  $this->value_options = location_get_iso3166_list();
}