function openlayers_map_form_settings in Openlayers 7.3
Map settings config form handler.
1 string reference to 'openlayers_map_form_settings'
- openlayers_ui_OpenlayersMaps_ctools_export_ui in modules/
openlayers_ui/ src/ Plugin/ export_ui/ OpenlayersMaps.inc - CTools Export UI plugin definition.
File
- modules/
openlayers_ui/ src/ Plugin/ export_ui/ OpenlayersMaps.inc, line 117 - CTools Export UI plugin definition for maps.
Code
function openlayers_map_form_settings($form, &$form_state) {
if (!isset($form_state['item']->factory_service)) {
$form_state['item']->factory_service = 'openlayers.Map:OLMap';
}
if (($map = \Drupal\openlayers\Openlayers::load('Map', $form_state['item'])) == TRUE) {
$map
->optionsForm($form, $form_state);
$form['options']['#tree'] = TRUE;
}
return $form;
}