Active
Project:
GeoUser
Version:
6.x-1.2
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
3 Jan 2010 at 06:54 UTC
Updated:
3 Jan 2010 at 06:54 UTC
Some users may not wish to have a map on each user's page. Here's a simple patch that adds the option to disable the map. Adds an option in the admin panel, and a no-op in geouser_user() to remind developers that the selection value is taken.
--- geouser.admin.inc (revision 96)
+++ geouser.admin.inc (working copy)
@@ -18,7 +18,7 @@
'#type' => 'radios',
'#title' => t("Type of map"),
'#description' => t("Select type of a geographic map to be displayed."),
- '#options' => array(t('Google Map'), t('Yahoo Map')),
+ '#options' => array(t('Google Map'), t('Yahoo Map'), t('No Map (location still displayed)')),
'#default_value' => variable_get('map_type', 0),
'#collapsible' => TRUE,
'#collapsed' => true,
Index: geouser.module
===================================================================
--- geouser.module (revision 96)
+++ geouser.module (working copy)
@@ -151,6 +151,10 @@
'#type' => 'user_profile_item',
);
}
+
+ if(variable_get('map_type', 0) == 2){
+ //Display no map (map disabled)
+ }
}
}catch(Exception $e){