public function location_handler_sort_location_country::extra_options_form in Location 7.3
Same name and namespace in other branches
- 6.3 handlers/location_handler_sort_location_country.inc \location_handler_sort_location_country::extra_options_form()
Provide a form for setting options.
Overrides views_handler::extra_options_form
File
- handlers/
location_handler_sort_location_country.inc, line 31 - Country sort handler.
Class
Code
public function extra_options_form(&$form, &$form_state) {
$form['country_sort'] = array(
'#type' => 'radios',
'#title' => t('Name or Code'),
'#options' => array(
'name' => t("Use the County Name (as specified by the database)."),
'code' => t("Use the ISO3166 two letter country code ."),
),
'#description' => t("This sets how country will be sorted, either by Name or the ISO 3166 2 letter code"),
'#default_value' => $this->options['country_sort'],
);
}