You are here

public function location_handler_field_location_address::options_form in Location 7.3

Same name and namespace in other branches
  1. 6.3 handlers/location_handler_field_location_address.inc \location_handler_field_location_address::options_form()
  2. 7.5 handlers/location_handler_field_location_address.inc \location_handler_field_location_address::options_form()
  3. 7.4 handlers/location_handler_field_location_address.inc \location_handler_field_location_address::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_address.inc, line 25
Field handler to display a complete address.

Class

location_handler_field_location_address

Code

public function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['hide'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Hide fields from display'),
    '#options' => location_field_names(TRUE),
    '#default_value' => $this->options['hide'],
  );
  $form['exclude_cck'] = array(
    '#type' => 'checkbox',
    '#title' => t('Exclude Content locations'),
    '#description' => t('Filter Content (CCK) locations from this field. You can use Content views fields to display them seperately.'),
    '#default_value' => $this->options['exclude_cck'],
  );
}