You are here

function openlayers_source_form_options_validate in Openlayers 7.3

Source options config form validation handler.

File

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

Code

function openlayers_source_form_options_validate($form, &$form_state) {
  if (($source = \Drupal\openlayers\Openlayers::load('Source', $form_state['item'])) == TRUE) {
    $source
      ->optionsFormValidate($form, $form_state);
  }
}