You are here

function location_handler_filter_location_country::operator_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::operator_options()
  2. 7.3 handlers/location_handler_filter_location_country.inc \location_handler_filter_location_country::operator_options()
  3. 7.4 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 137

Class

location_handler_filter_location_country
Filter on country.

Code

function operator_options($which = 'title') {
  if (empty($this->options['expose']['multiple'])) {
    return array(
      'in' => t('Is'),
      'not in' => t('Is not'),
    );
  }
  else {
    return array(
      'in' => t('Is one of'),
      'not in' => t('Is not one of'),
    );
  }
}