You are here

function openlayers_plus_behavior_tooltips_field::options_form in OpenLayers Plus 7

Same name and namespace in other branches
  1. 7.3 behaviors/openlayers_plus_behavior_tooltips_field.inc \Openlayers_plus_behavior_tooltips_field::options_form()
  2. 7.2 behaviors/openlayers_plus_behavior_tooltips_field.inc \Openlayers_plus_behavior_tooltips_field::options_form()

Override of options_form().

Overrides openlayers_behavior::options_form

File

behaviors/openlayers_plus_behavior_tooltips_field.inc, line 14

Class

openlayers_plus_behavior_tooltips_field

Code

function options_form() {
  $form = parent::options_form();
  $form['positioned'] = array(
    '#type' => 'checkbox',
    '#title' => t('Position tooltip over feature displaying specific field'),
    '#default_value' => $this->options['positioned'],
  );
  $form['field_displayed'] = array(
    '#type' => 'textfield',
    '#title' => t('Field to Display'),
    '#description' => t('Field from openlayers view to be displayed. (usually field_your_special_field)'),
    '#default_value' => isset($this->options['field_displayed']) ? $this->options['field_displayed'] : NULL,
  );
  return $form;
}