function yamaps_cleanup_values in Yandex.Maps 7
Prepares values for map.
Parameters
array $value: Values of map.
1 call to yamaps_cleanup_values()
- yamaps_field_widget_form in inc/
yamaps.widget.inc - Implements hook_field_widget_form().
File
- ./
yamaps.functions.inc, line 150 - Yandex Maps functions used across all components of the module.
Code
function yamaps_cleanup_values(array &$value) {
$value['coords'] = isset($value['coords']) ? $value['coords'] : NULL;
$value['type'] = isset($value['type']) ? $value['type'] : 'yandex#map';
$value['placemarks'] = isset($value['placemarks']) ? $value['placemarks'] : NULL;
$value['lines'] = isset($value['lines']) ? $value['lines'] : NULL;
$value['polygons'] = isset($value['polygons']) ? $value['polygons'] : NULL;
$value['routes'] = isset($value['routes']) ? $value['routes'] : NULL;
$value['hide'] = isset($value['hide']) ? $value['hide'] : 0;
}