Index: location.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/location/location.module,v
retrieving revision 1.79
diff -u -F^f -r1.79 location.module
--- location.module	20 Jan 2007 01:58:15 -0000	1.79
+++ location.module	16 Feb 2007 08:22:15 -0000
@@ -549,7 +549,14 @@ function location_form_alter($form_id, &
       '#default_value' => variable_get('location_collapsed_'. $type, 1),
       '#description' => t('Display the location box collapsed.')
     );
-    
+
+    $form['location']['location_addanother_'. $type] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Add another location from node view page'),
+      '#default_value' => variable_get('location_addanother_'. $type, 0),
+      '#description' => t('Check this if you wish to show the "Add another location" option on the node view page.')
+    );
+
     $form['location']['required_field_notice'] = array(
       '#type' => 'markup',
       '#value' => '<p><strong>'. t('NOTE:') .'</strong> '. t('Locations fields you choose to require will only be required for the first location if you have allowed more than one location to be submitted for this node type.') .'</p>'
@@ -1008,8 +1015,8 @@ function location_nodeapi(&$node, $op, $
           //}
         }
       }
-      
-      if (count($node->locations) < variable_get('location_maxnum_'. $node->type, 0) && !$teaser && node_access('update', $node)) {
+
+      if (variable_get('location_addanother_'. $node->type, 0) && count($node->locations) < variable_get('location_maxnum_'. $node->type, 0) && !$teaser && node_access('update', $node)) {
         $node->content['locations']['#value'] .= drupal_get_form('location_extra_form', $node);
       }
       break;
@@ -1536,4 +1543,4 @@ function location_invoke_locationapi(&$l
     }
   }
   return $return;
-}
\ No newline at end of file
+}
