cvs [diff aborted]: no such directory `contributions/modules/location'
Index: contributions/modules/location/location.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/location/location.module,v
retrieving revision 1.31
diff -u -r1.31 location.module
--- contributions/modules/location/location.module	10 Jun 2005 22:23:18 -0000	1.31
+++ contributions/modules/location/location.module	14 Jun 2005 08:52:08 -0000
@@ -388,7 +388,7 @@
   }
   
   if ($op == 'form' && $category == 'account') {
-    return array(array('title' => '', 'data' => location_form(array('street', 'city', 'province', 'postal_code', 'country'), (isset($user->location) && !_location_is_empty($user->location)) ? location_api2form($user->location) : array('country' => variable_get('location_default_country', 'us')), array(), array(), t('Enter as much of your address as you are comfortable with.  Your address will only be viewable by those who have the appropriate permissions.  The site will be able to automatically link you to driving directions and other features if it already knows your address.')), 'weight' => 0));
+    return array(t('location') => array('title' => t('Location'), 'data' => location_form(array('street', 'city', 'province', 'postal_code', 'country'), (isset($user->location) && !_location_is_empty($user->location)) ? location_api2form($user->location) : array('country' => variable_get('location_default_country', 'us')), array(), array(), t('Enter as much of your address as you are comfortable with.  Your address will only be viewable by those who have the appropriate permissions.  The site will be able to automatically link you to driving directions and other features if it already knows your address.')), 'weight' => 1));
   }
   
   if ($op == 'load') {
@@ -401,12 +401,8 @@
     }
   }
   
-  if ($op == 'categories') {
-    return array(array('name' => 'location', 'title' => '', 'weight' => 0));
-  }
-  
   if ($op == 'update' || $op == 'insert') {
-    _location_save($user->location ? $user->location : array(), $user, 'user');
+    _location_save($edit['location'] ? $edit['location'] : array(), $user, 'user');
     unset($edit['location']);
   }
   
