You are here

public function location_handler_field_location_street::options_form in Location 7.3

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

Default options form provides the label widget that all fields should have.

Overrides views_handler_field::options_form

File

handlers/location_handler_field_location_street.inc, line 34
Province field handler.

Class

location_handler_field_location_street

Code

public function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['style'] = array(
    '#title' => t('Display style'),
    '#type' => 'select',
    '#options' => array(
      'both' => t('Both street and additional'),
      'street' => t('Street only'),
      'additional' => t('Additional only'),
    ),
    '#default_value' => $this->options['style'],
  );
}