@@ -64,6 +64,8 @@ function gmap_location_menu($may_cache) {
...
@@ -64,6 +64,8 @@ function gmap_location_menu($may_cache) {
functiongmap_location_user_page(){
functiongmap_location_user_page(){
global$user;
global$user;
$locationbyuser=array();
$output='<p>'.variable_get('gmap_user_map_header',t('This map illustrates the extent of users of this website. Each marker indicates a user that has entered their locations.'))."</p>\n";
$output='<p>'.variable_get('gmap_user_map_header',t('This map illustrates the extent of users of this website. Each marker indicates a user that has entered their locations.'))."</p>\n";
// Find default marker
// Find default marker
...
@@ -108,7 +110,7 @@ function gmap_location_user_page() {
...
@@ -108,7 +110,7 @@ function gmap_location_user_page() {
@@ -637,7 +639,7 @@ function gmap_location_form_alter($form_id, &$form) {
...
@@ -637,7 +639,7 @@ function gmap_location_form_alter($form_id, &$form) {
case$type.'_node_form':
case$type.'_node_form':
if(variable_get('gmap_node_'.$type,0)){
if(variable_get('gmap_node_'.$type,0)){
$edit=array();
$edit=array();
_gmap_location_map_form(&$form,$edit,'node');
_gmap_location_map_form($form,$edit,'node');
}
}
break;
break;
}
}
...
@@ -735,6 +737,8 @@ function _gmap_location_map_form(&$form, &$edit, $type) {
...
@@ -735,6 +737,8 @@ function _gmap_location_map_form(&$form, &$edit, $type) {
'#size'=>30,
'#size'=>30,
'#maxlength'=>120,
'#maxlength'=>120,
'#id'=>'gmap-address',
'#id'=>'gmap-address',
'#description'=>t('The address to be found on the map. Enter an address and then hit "TAB" and the current location will be updated. Please note that this address is not saved for the node, it is only used for finding a location.'),