You are here

function location_geocoding_parameters_form in Location 7.3

Same name and namespace in other branches
  1. 5.3 location.module \location_geocoding_parameters_form()
  2. 5 location.module \location_geocoding_parameters_form()
  3. 6.3 location.module \location_geocoding_parameters_form()
  4. 7.5 location.module \location_geocoding_parameters_form()
  5. 7.4 location.module \location_geocoding_parameters_form()

Parameters form.

1 string reference to 'location_geocoding_parameters_form'
location_geocoding_parameters_page in ./location.module
Page callback.

File

./location.module, line 1039
Location module main routines. An implementation of a universal API for location manipulation. Provides functions for postal_code proximity searching, deep-linking into online mapping services. Currently, some options are configured through an…

Code

function location_geocoding_parameters_form($form, &$form_state, $country_iso, $service) {
  location_load_country($country_iso);
  $geocode_settings_form_function_specific = 'location_geocode_' . $country_iso . '_' . $service . '_settings';
  $geocode_settings_form_function_general = $service . '_geocode_settings';
  if (function_exists($geocode_settings_form_function_specific)) {
    return system_settings_form($geocode_settings_form_function_specific());
  }
  location_load_geocoder($service);
  if (function_exists($geocode_settings_form_function_general)) {
    return system_settings_form($geocode_settings_form_function_general());
  }
  else {
    return system_settings_form(array(
      '#type' => 'markup',
      '#markup' => t('No configuration parameters are necessary, or a form to take such paramters has not been implemented.'),
    ));
  }
}