You are here

function openlayers_objects_ui_form_wrapper in Openlayers 7.3

Wizard wrapper to add Save & edit button.

7 string references to 'openlayers_objects_ui_form_wrapper'
openlayers_ui_OpenlayersComponents_ctools_export_ui in modules/openlayers_ui/src/Plugin/export_ui/OpenlayersComponents.inc
CTools Export UI plugin definition.
openlayers_ui_OpenlayersControls_ctools_export_ui in modules/openlayers_ui/src/Plugin/export_ui/OpenlayersControls.inc
CTools Export UI plugin definition.
openlayers_ui_OpenlayersInteractions_ctools_export_ui in modules/openlayers_ui/src/Plugin/export_ui/OpenlayersInteractions.inc
CTools Export UI plugin definition.
openlayers_ui_OpenlayersLayers_ctools_export_ui in modules/openlayers_ui/src/Plugin/export_ui/OpenlayersLayers.inc
CTools Export UI plugin definition.
openlayers_ui_OpenlayersMaps_ctools_export_ui in modules/openlayers_ui/src/Plugin/export_ui/OpenlayersMaps.inc
CTools Export UI plugin definition.

... See full list

File

modules/openlayers_ui/src/Plugin/export_ui/OpenlayersObjects.php, line 188
Class openlayers_objects_ui.

Code

function openlayers_objects_ui_form_wrapper($form, $form_state) {
  if ($form_state['step'] != 'start') {
    $form['buttons']['saveandedit'] = array(
      '#name' => 'saveandedit',
      '#type' => 'submit',
      '#value' => t('Save & edit'),
      '#wizard type' => 'finish',
      '#weight' => 1,
    );
    $form['buttons']['cancel']['#weight'] = 20;
  }
  return $form;
}