? location_views.module
Index: location.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/location/location.module,v
retrieving revision 1.60
diff -u -r1.60 location.module
--- location.module	3 Apr 2006 23:07:54 -0000	1.60
+++ location.module	17 Apr 2006 07:19:21 -0000
@@ -441,7 +441,7 @@
     $form['location']['#collapsible'] = variable_get('location_collapsible_'.$form['type']['#value'], 0) == 0 ? FALSE : TRUE;
     $form['location']['#collapsed'] = variable_get('location_collapsed_'.$form['type']['#value'], 0) == 0 ? FALSE : TRUE;
 
-    if (user_access('submit latitude/longitude')) {
+    if ((user_access('submit latitude/longitude')) && (variable_get('location_manual_longlat', 0))) {
       $form['location'][] = array(
         '#type' => 'markup',
         '#value' => "<br/>\n"
@@ -742,6 +742,13 @@
       '#options' => array(0 => t('Disable the display of locations.'), 1 => t('Enable the display of locations.')),
       '#description' => t('If you are interested in turning off locations and having a custom theme control their display, you may want to disable the display of locations so your theme can take over them.')
       );
+  $form['location_manual_longlat'] = array(
+      '#type' => 'radios',
+      '#title' => t('Allow users to manually set longitude/latitude'),
+      '#default_value' => variable_get('location_manual_longlat', 0),
+      '#options' => array(0 => t('Disable'), 1 => t('Enable')),
+      '#description' => t('This option is helpful if you are collecting locative data from areas where zipcode data is unavaliable.')
+      );
   if (!module_exist('civicrm')) {
     $form['location_user'] = array(
         '#type' => 'radios',
