? 235816_comment_notify_require_opt_in_7.patch
? cvs-release-notes.php
Index: comment_notify.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/comment_notify/comment_notify.install,v
retrieving revision 1.1.4.2
diff -u -p -r1.1.4.2 comment_notify.install
--- comment_notify.install	19 Jan 2008 12:49:05 -0000	1.1.4.2
+++ comment_notify.install	29 Apr 2008 14:53:28 -0000
@@ -10,13 +10,13 @@ function comment_notify_install() {
     case 'mysqli':
       $status[] = db_query("
         ALTER TABLE {comments}
-        ADD COLUMN `notify` tinyint(1) NOT NULL DEFAULT '1'");
+        ADD COLUMN `notify` tinyint(1) NOT NULL DEFAULT '0'");
       break;
 
     case 'pgsql':
       $status[] = db_query("
         ALTER TABLE {comments}
-        ADD COLUMN `notify` tinyint(1) NOT NULL DEFAULT '1'");
+        ADD COLUMN `notify` tinyint(1) NOT NULL DEFAULT '0'");
       break;
   }
   
@@ -25,7 +25,7 @@ function comment_notify_install() {
 
   // If there is one FALSE value in the status array, there was an error.
   if (array_search(FALSE, $status) !== FALSE) {
-    drupal_set_message(t('Table installation for the comment_notify module was unsuccessful. The tables may need to be installed by hand.'), 'error');
+    drupal_set_message(t('Database modifications for the comment_notify module was unsuccessful. The modifications may need to be made by hand.'), 'error');
   }
   else {
     drupal_set_message(t('comment_notify module installed successfully.'));
@@ -72,3 +72,12 @@ function comment_notify_update_3() {
   $ret[]=$result;
   return $ret;
 }
+
+/*
+ * Set the default to 0 for upgrades so users must opt in to get emails.
+ */
+function comment_notify_update_4(){
+  $ret = array();
+  $ret[] = update_sql("ALTER TABLE {comments} MODIFY notify tinyint(1) NOT NULL DEFAULT '0'");
+  return $ret;
+}
\ No newline at end of file
