You are here

function theme_getlocations_gps_button in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_gps/getlocations_gps.module \theme_getlocations_gps_button()
1 theme call to theme_getlocations_gps_button()
theme_getlocations_show in ./getlocations.module
Returns HTML for a map.

File

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

Code

function theme_getlocations_gps_button($variables) {
  $defaults = $variables['defaults'];
  $mapid = $variables['mapid'];
  $output = '';
  $geolocation_mobile_check = $defaults['geolocation_mobile_check'] ? FALSE : TRUE;
  if (getlocations_is_mobile($geolocation_mobile_check) && isset($defaults['gps_button']) && $defaults['gps_button']) {
    $gpsbtn = '<input type="button" value="' . $defaults['gps_button_label'] . '" id="getlocations_gps_show_' . $mapid . '" class="form-submit"  />';
    $gpsbtn .= '<div class="getlocations_gps_throbber getlocations_gps_throbber_inactive" id="getlocations_gps_throbber_' . $mapid . '">&nbsp;&nbsp;&nbsp;&nbsp;</div>';
    $output .= $gpsbtn;
  }
  return $output;
}