function hook_geocoder_geocode_values_alter in Geocoder 7
Implements hook_geocoder_geocode_values_alter().
Alter the source values before geocode them.
1 invocation of hook_geocoder_geocode_values_alter()
- geocoder_widget_get_field_value in ./
geocoder.widget.inc - Get a field's value based on geocoded data.
File
- ./
geocoder.api.php, line 37 - geocoder.api.php
Code
function hook_geocoder_geocode_values_alter(&$source_field_values, $field_info, $handler_settings, $field_instance) {
foreach ($source_field_values as $key => $value) {
$source_field_values[$key]['administrative_area'] = 'Ciudad de Buenos Aires';
}
}