summaryrefslogtreecommitdiff
path: root/modules/comment/comment.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-07-03 17:57:03 +0000
committerDries Buytaert <dries@buytaert.net>2008-07-03 17:57:03 +0000
commit1415340ce390e2fa6a872e5efa9a152e34840454 (patch)
tree31aef1e02db3a18033d50da9bedd718adc349fe1 /modules/comment/comment.install
parent0ccb4c40d147d222d081aa2528ee891701efd8b2 (diff)
downloadbrdo-1415340ce390e2fa6a872e5efa9a152e34840454.tar.gz
brdo-1415340ce390e2fa6a872e5efa9a152e34840454.tar.bz2
- Patch #191499 by catch: remove display order settings and cleaned up some white space.
Diffstat (limited to 'modules/comment/comment.install')
-rw-r--r--modules/comment/comment.install30
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install
index 598b476bf..cc1ea7353 100644
--- a/modules/comment/comment.install
+++ b/modules/comment/comment.install
@@ -24,6 +24,11 @@ function comment_update_1() {
return array();
}
+/**
+ * @defgroup updates-5.x-to-6.x Comment updates from 5.x to 6.x
+ * @{
+ */
+
function comment_update_6001() {
$ret[] = update_sql("ALTER TABLE {comments} DROP score");
$ret[] = update_sql("ALTER TABLE {comments} DROP users");
@@ -70,6 +75,31 @@ function comment_update_6003() {
return $ret;
}
+/**
+ * @} End of "defgroup updates-5.x-to-6.x"
+ * The next series of updates should start at 7000.
+ */
+
+/**
+ * @defgroup updates-6.x-to-7.x Comment updates from 6.x to 7.x
+ * @{
+ */
+
+/**
+ * Remove comment settings for page ordering.
+ */
+function comment_update_7000() {
+ $types = node_get_types();
+ foreach ($types as $type => $object) {
+ variable_del('comment_default_order' . $type);
+ }
+ return array(array('success' => TRUE, 'query' => 'Comment order settings removed.'));
+}
+
+/**
+ * @} End of "defgroup updates-6.x-to-7.x"
+ * The next series of updates should start at 8000.
+ */
/**
* Implementation of hook_schema().