You are here

function openlayers_source_form_options in Openlayers 7.3

Source options config form handler.

1 string reference to 'openlayers_source_form_options'
openlayers_ui_OpenlayersSources_ctools_export_ui in modules/openlayers_ui/src/Plugin/export_ui/OpenlayersSources.inc
CTools Export UI plugin definition.

File

modules/openlayers_ui/src/Plugin/export_ui/OpenlayersSources.inc, line 181
CTools Export UI plugin definition for sources.

Code

function openlayers_source_form_options($form, &$form_state) {
  if (($source = \Drupal\openlayers\Openlayers::load('Source', $form_state['item'])) == TRUE) {
    $source
      ->optionsForm($form, $form_state);
    $form['options']['#tree'] = TRUE;
  }
  return $form;
}