function gmap_fields_field_widget_form_alter in GMap Module 7.2
Implements hook_field_widget_form_alter().
File
- gmap_fields/
gmap_fields.module, line 71 - GMap Fields - Fields for the GMap module, currently only a marker field.
Code
function gmap_fields_field_widget_form_alter(&$element, &$form_state, $context) {
if ($context['field']['type'] == GMAP_FIELDS_TYPE_MARKER) {
$element['#options'] += gmap_get_marker_titles();
}
}