function geocoder_process_override in Geocoder 7
Geocoder element process function.
1 string reference to 'geocoder_process_override'
- geocoder_field_widget_form in ./
geocoder.widget.inc - Implements hook_field_widget_form().
File
- ./
geocoder.widget.inc, line 248 - geocoder.widget.inc
Code
function geocoder_process_override($element) {
$parents = $element['#parents'];
$first_parent = array_shift($parents);
$name = $first_parent . '[' . implode('][', $parents) . '][geocoder_overridden]';
// Only display lat/long inputs if override is checked.
$element['geom']['#states'] = array(
'visible' => array(
':input[name="' . $name . '"]' => array(
'checked' => TRUE,
),
),
);
return $element;
}