You are here

function getlocations_gps_map_display_options_form in Get Locations 7.2

Same name and namespace in other branches
  1. 7 modules/getlocations_gps/getlocations_gps.module \getlocations_gps_map_display_options_form()

Parameters

array $defaults: Settings

Returns form

2 calls to getlocations_gps_map_display_options_form()
getlocations_gps_settings_form in modules/getlocations_gps/getlocations_gps.module
Function to display the getlocations_gps admin settings form
getlocations_map_display_options_form in ./getlocations.module
Function

File

modules/getlocations_gps/getlocations_gps.module, line 258
getlocations_gps.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_gps_map_display_options_form($defaults) {
  if (empty($defaults['gps_button_label'])) {
    $getlocations_gps_defaults = getlocations_gps_defaults();
    $defaults['gps_button'] = $getlocations_gps_defaults['gps_button'];
    $defaults['gps_button_label'] = $getlocations_gps_defaults['gps_button_label'];
    $defaults['gps_marker'] = $getlocations_gps_defaults['gps_marker'];
    $defaults['gps_marker_title'] = $getlocations_gps_defaults['gps_marker_title'];
    $defaults['gps_bubble'] = $getlocations_gps_defaults['gps_bubble'];
    $defaults['gps_geocode'] = $getlocations_gps_defaults['gps_geocode'];
    $defaults['gps_center'] = $getlocations_gps_defaults['gps_center'];
    $defaults['gps_type'] = $getlocations_gps_defaults['gps_type'];
    $defaults['gps_zoom'] = $getlocations_gps_defaults['gps_zoom'];
  }
  $form = _getlocations_gps_map_display_options_form($defaults);
  $form['#theme'][] = 'getlocations_gps_map_display_options_form';
  return $form;
}