function location_handler_filter_location_country::operator_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::operator_options()
- 7.5 handlers/location_handler_filter_location_country.inc \location_handler_filter_location_country::operator_options()
- 7.3 handlers/location_handler_filter_location_country.inc \location_handler_filter_location_country::operator_options()
Build strings from the operators() for 'select' options.
Overrides views_handler_filter_in_operator::operator_options
File
- handlers/
location_handler_filter_location_country.inc, line 86
Class
- location_handler_filter_location_country
- Filter on country.
Code
function operator_options($which = 'title') {
if ($this->options['expose']['single']) {
return array(
'is' => t('Is'),
'is not' => t('Is not'),
);
}
else {
return array(
'is' => t('Is one of'),
'is not' => t('Is not one of'),
);
}
}