Index: comment_notify.install
===================================================================
RCS file: /cvs/drupal/contributions/modules/comment_notify/comment_notify.install,v
retrieving revision 1.6
diff -u -r1.6 comment_notify.install
--- comment_notify.install	22 Aug 2008 01:18:03 -0000	1.6
+++ comment_notify.install	26 Oct 2008 14:26:17 -0000
@@ -1,5 +1,9 @@
 <?php
 // $Id: comment_notify.install,v 1.6 2008/08/22 01:18:03 greggles Exp $
+/**
+ * @file
+ * comment_notify.install.
+ */
 
 /**
  * Implementation of hook_install().
@@ -10,16 +14,23 @@
 
   // Insert a record for each existing comment.
   db_query("INSERT INTO {comment_notify} (cid, notify, notify_hash) SELECT c.cid, 0, md5(concat(c.mail, ifnull(u.mail, u.init), c.uid, c.name, c.nid)) FROM {comments} c LEFT OUTER JOIN {users} u on c.uid = u.uid");
-  
+
    // Set module weight low so that other modules act on the comment first.
   db_query("UPDATE {system} SET weight = 10 WHERE name = 'comment_notify'");
 }
 
+/**
+ * Implementation of hook_uninstall().
+ */
 function comment_notify_uninstall() {
   drupal_uninstall_schema('comment_notify');
-  // TODO cleanup variables
+  variable_del('node_notify_default_mailtext');
+  db_query("DELETE FROM {variable} WHERE name LIKE 'comment_notify_%'");
 }
 
+/**
+ * Implementation of hook_schema().
+ */
 function comment_notify_schema() {
   $schema['comment_notify'] = array(
     'description' => t('Stores information about which commenters on the site have subscriped to followup emails.'),
@@ -55,4 +66,4 @@
 function comment_notify_update_6000() {
   $return[] = update_sql("DELETE FROM {comment_notify} WHERE cid NOT IN (SELECT cid FROM {comments})");
   return $return;
-}
\ No newline at end of file
+}

