summaryrefslogtreecommitdiff
path: root/modules/comment/comment.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-01 12:06:22 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-01 12:06:22 +0000
commit75d449d1eb5b87a8b94e22622102905b1ac58612 (patch)
treea8b1ff4a0567d2e5b7a517ccdeeccd05df00c48c /modules/comment/comment.install
parent603efa2763975962eb53fd1c251f1dc611bb34a3 (diff)
downloadbrdo-75d449d1eb5b87a8b94e22622102905b1ac58612.tar.gz
brdo-75d449d1eb5b87a8b94e22622102905b1ac58612.tar.bz2
- Patch #506218 by catch: remove collapsed comments as is and tidy up comment settings.
Diffstat (limited to 'modules/comment/comment.install')
-rw-r--r--modules/comment/comment.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install
index 1f43846f9..f35b98d81 100644
--- a/modules/comment/comment.install
+++ b/modules/comment/comment.install
@@ -110,6 +110,23 @@ function comment_update_7003() {
}
/**
+ * Rename comment display setting variables.
+ */
+function comment_update_7004() {
+ $types = node_type_get_types();
+ foreach ($types as $type => $object) {
+ $setting = variable_get('comment_default_mode_' . $type, 4);
+ if ($setting == 3 || $setting == 4) {
+ variable_set('comment_default_mode_' . $type, 1);
+ }
+ else {
+ variable_set('comment_default_mode_' . $type, 0);
+ }
+ }
+ return array();
+}
+
+/**
* @} End of "defgroup updates-6.x-to-7.x"
* The next series of updates should start at 8000.
*/