function openlayers_content_types_openlayers_content_type_edit_form_submit in Openlayers 7.3
Store the configuration settings.
File
- modules/
openlayers_content_types/ plugins/ content_types/ openlayers.inc, line 57
Code
function openlayers_content_types_openlayers_content_type_edit_form_submit($form, &$form_state) {
// Generic handling.
$conf = $form_state['conf'] + $form_state['plugin']['defaults'];
foreach ($form_state['plugin']['defaults'] as $key => $value) {
if (is_array($value)) {
// Ensure it's a complete array.
$form_state['values']['conf'][$key] += $conf[$key];
}
if (isset($form_state['values']['conf'][$key])) {
$form_state['conf'][$key] = $form_state['values']['conf'][$key];
}
}
}