You are here

function getlocations_geocoder_form in Get Locations 7

Same name and namespace in other branches
  1. 7.2 getlocations.module \getlocations_geocoder_form()
3 calls to getlocations_geocoder_form()
getlocations_fields_handler_filter_distance::value_form in modules/getlocations_fields/handlers/getlocations_fields_handler_filter_distance.inc
Options form subform for setting options.
getlocations_fields_input_settings_form in modules/getlocations_fields/getlocations_fields.module
input settings form for sharing
getlocations_map_display_options_form in ./getlocations.module
Function

File

./getlocations.module, line 5081
getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_geocoder_form($defaults) {
  $form = array();
  if (getlocations_get_geocoder_path()) {
    $form['geocoder_enable'] = getlocations_element_dd(t('Geocoder type'), $defaults['geocoder_enable'], array(
      0 => t('Quick Google Search'),
      1 => t('Full Google Search'),
      2 => t('OpenStreetMap Search'),
    ), t('The type of geocoder to use. Quick Google search only applies if Google Autocomplete has been used.'));
  }
  else {
    $form['geocoder_enable'] = array(
      '#type' => 'value',
      '#value' => 0,
    );
  }
  return $form;
}