You are here

function openlayers_style_form_options_submit in Openlayers 7.3

Style options config form submit handler.

File

modules/openlayers_ui/src/Plugin/export_ui/OpenlayersStyles.inc, line 151
CTools Export UI plugin definition for styles.

Code

function openlayers_style_form_options_submit($form, &$form_state) {
  if (isset($form_state['values']['options'])) {
    $form_state['item']->options = array_merge((array) $form_state['item']->options, (array) $form_state['values']['options']);
  }
  if (($style = \Drupal\openlayers\Openlayers::load('Style', $form_state['item'])) == TRUE) {
    $style
      ->optionsFormSubmit($form, $form_state);
  }
}