function getlocations_fields_handler_argument_province::options_form in Get Locations 7.2
Same name and namespace in other branches
- 7 modules/getlocations_fields/handlers/getlocations_fields_handler_argument_province.inc \getlocations_fields_handler_argument_province::options_form()
Build the options form.
Overrides views_handler_argument::options_form
File
- modules/
getlocations_fields/ handlers/ getlocations_fields_handler_argument_province.inc, line 24 - getlocations_fields_handler_argument_province.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Class
- getlocations_fields_handler_argument_province
- Argument handler to accept province
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['type'] = array(
'#type' => 'value',
'#value' => 'province',
);
$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'],
);
}