You are here

function openlayers_ui_layers_form in Openlayers 6.2

Layer add/edit form.

3 string references to 'openlayers_ui_layers_form'
openlayers_ui_layers_import_validate in modules/openlayers_ui/includes/openlayers_ui.layers.inc
Validate handler to import a preset
openlayers_ui_menu in modules/openlayers_ui/openlayers_ui.module
Implementation of hook_menu
openlayers_views_form_alter in modules/openlayers_views/openlayers_views.module
Implementation of hook_form_alter()

File

modules/openlayers_ui/includes/openlayers_ui.layers.inc, line 24
This file holds the functions handling layers in the Openlayers UI.

Code

function openlayers_ui_layers_form(&$form_state, $layer = NULL) {
  $form = array();
  $form['layer'] = openlayers_ui_get_layer_form($layer);
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}