function openlayers_field_field_presave in Openlayers 7.3
Implements hook_field_presave().
File
- modules/
openlayers_field/ openlayers_field.module, line 55 - Openlayers field module.
Code
function openlayers_field_field_presave($entity_type, $entity, $field, $instance, $langcode, &$items) {
foreach ($items as $delta => $item) {
if (empty($item['value'])) {
unset($items[$delta]);
}
}
}