isset($d['maptype']) ? $d['maptype'] : 'Map', 'Map' => 1, 'Satellite' => 1, 'Hybrid' => 1, 'Physical' => 0, ); } // Default maptype was moved into baselayers. unset($d['maptype']); // Determine the map type control that was in use. if (!isset($d['mtc'])) { // User had the notype behavior flag set. if (!empty($d['behavior']['notype'])) { $d['mtc'] = 'none'; } else { $d['mtc'] = 'standard'; } } // notype is gone, mtc is more generic. if (isset($d['behavior']['notype'])) { unset($d['behavior']['notype']); } variable_set('gmap_default', $d); return $ret; } /** * Post 5.x-1.0beta2 update 1. * We added a menu callback, force a rebuild. */ function gmap_update_5001() { $ret = array(); menu_rebuild(); return $ret; }