diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-01 12:06:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-01 12:06:22 +0000 |
commit | 75d449d1eb5b87a8b94e22622102905b1ac58612 (patch) | |
tree | a8b1ff4a0567d2e5b7a517ccdeeccd05df00c48c /modules/comment/comment.install | |
parent | 603efa2763975962eb53fd1c251f1dc611bb34a3 (diff) | |
download | brdo-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.install | 17 |
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. */ |