summaryrefslogtreecommitdiff
path: root/modules/comment/comment.install
diff options
context:
space:
mode:
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.
*/