You are here

function getlocations_fields_handler_argument_city::options_form in Get Locations 7

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

Build the options form.

Overrides views_handler_argument::options_form

File

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

Class

getlocations_fields_handler_argument_city
Argument handler to accept city

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['type'] = array(
    '#type' => 'value',
    '#value' => 'city',
  );
  $form['operator'] = array(
    '#type' => 'select',
    '#title' => t('Operator'),
    '#options' => array(
      'equal' => t('Equals'),
      'not_equal' => t('Does not Equal'),
      'begin_with' => t('Begins with'),
      'not_begin_with' => t('Does not Begin with'),
      'end_with' => t('Ends with'),
      'not_end_with' => t('Does not End with'),
      'contain' => t('Contains'),
      'not_contain' => t('Does not Contain'),
    ),
    '#default_value' => $this->options['operator'],
  );
}