Index: drubot.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/wave/drubot/drubot.install,v
retrieving revision 1.2
diff -u -r1.2 drubot.install
--- drubot.install	27 Oct 2009 03:58:27 -0000	1.2
+++ drubot.install	28 Jun 2010 08:33:51 -0000
@@ -9,6 +9,14 @@
 function drubot_uninstall() {
   $sql = "DELETE FROM {variable} WHERE name like '%s%%'";
   db_query($sql, 'drubot_');
+  
+  $sql = "SELECT fid FROM {profile_fields} WHERE name LIKE '%%%s' OR name LIKE '%%%s'";
+  $result = db_query($sql, 'drubot_google_account', 'drubot_salt');
+  while($row = db_fetch_object($result)) {
+    db_query('DELETE FROM {profile_fields} WHERE fid = %d', $row->fid);
+    db_query('DELETE FROM {profile_values} WHERE fid = %d', $row->fid);
+    cache_clear_all();
+  }
 }
 
 function _drubot_import_content($type = '<create>', $file = '', $macro = '') {
@@ -51,7 +59,7 @@
     'title' => 'Google Account',
     'name' => 'drubot_google_account',
     'explanation' => 'Your Google Account',
-    'category' => 'Drubot Information',
+    'category' => 'Drubot',
     'type' => 'textfield',
     'weight' => '0',
     'required' => '1',
@@ -68,7 +76,7 @@
     'title' => 'Drubot Salt',
     'name' => 'drubot_salt',
     'explanation' => 'any random string, Used for security between drupal and wave robot communication',
-    'category' => 'Drubot Information',
+    'category' => 'Drubot',
     'type' => 'textfield',
     'weight' => '1',
     'required' => '1',
Index: drubot.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/wave/drubot/drubot.module,v
retrieving revision 1.3
diff -u -r1.3 drubot.module
--- drubot.module	27 Oct 2009 03:58:27 -0000	1.3
+++ drubot.module	28 Jun 2010 08:09:51 -0000
@@ -69,7 +69,7 @@
     '#required' => TRUE,
   );
   $fields = array();
-  $result = _profile_get_fields('Drubot Information');
+  $result = _profile_get_fields('Drubot');
   while ($row = db_fetch_array($result)) {
     $fields[$row['name']] = $row['title'];
   }

