You are here

public function QuickMap::optionsForm in Openlayers 7.2

Method for returning the form elements to display for this tab type on the admin form.

Parameters

$delta Integer representing this tab's position in the tabs array.:

$qt An object representing the Quicktabs instance that the tabs are: being built for.

Overrides QuickContent::optionsForm

File

plugins/quicktabs/QuickMap.inc, line 13

Class

QuickMap
Class for tab content of type "map" - this is for rendering a map as tab content.

Code

public function optionsForm($delta, $qt) {
  $tab = $this->settings;
  $form = array();
  $form['map']['map'] = array(
    '#type' => 'select',
    '#title' => t('OpenLayers Map'),
    '#options' => openlayers_map_options(),
    '#default_value' => isset($tab['map']) ? $tab['map'] : '',
  );
  return $form;
}