You are here

function getlocations_fields_handler_filter_country::operator_options in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_fields/handlers/getlocations_fields_handler_filter_country.inc \getlocations_fields_handler_filter_country::operator_options()

Build strings from the operators() for 'select' options.

Overrides views_handler_filter_in_operator::operator_options

File

modules/getlocations_fields/handlers/getlocations_fields_handler_filter_country.inc, line 131
getlocations_fields_handler_filter_country.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Class

getlocations_fields_handler_filter_country
@file getlocations_fields_handler_filter_country.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

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'),
    );
  }
}