You are here

public function location_handler_filter_location_province::operator_options in Location 7.3

Same name and namespace in other branches
  1. 6.3 handlers/location_handler_filter_location_province.inc \location_handler_filter_location_province::operator_options()
  2. 7.5 handlers/location_handler_filter_location_province.inc \location_handler_filter_location_province::operator_options()
  3. 7.4 handlers/location_handler_filter_location_province.inc \location_handler_filter_location_province::operator_options()

Provide a list of options for the default operator form.

Should be overridden by classes that don't override operator_form.

Overrides views_handler_filter::operator_options

File

handlers/location_handler_filter_location_province.inc, line 98
Filter on province.

Class

location_handler_filter_location_province

Code

public function operator_options() {
  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'),
    );
  }
}