diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-06-22 13:21:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-06-22 13:21:38 +0000 |
commit | fabaaaaa6e065b1f8f89c00b31b947fa7861d13c (patch) | |
tree | c9cb0fdb1b99300edeb7b943ffb8eb9bbab7d759 /modules/comment/comment.install | |
parent | f96c141f5aa99ed414eba4e0a520e5b4d9f91b76 (diff) | |
download | brdo-fabaaaaa6e065b1f8f89c00b31b947fa7861d13c.tar.gz brdo-fabaaaaa6e065b1f8f89c00b31b947fa7861d13c.tar.bz2 |
- Patch #278592 by catch, Dave Reid, lilou et al: remove D5 to D6 updates.
Diffstat (limited to 'modules/comment/comment.install')
-rw-r--r-- | modules/comment/comment.install | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install index cfbca311d..1f43846f9 100644 --- a/modules/comment/comment.install +++ b/modules/comment/comment.install @@ -61,62 +61,6 @@ function comment_update_1() { } /** - * @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"); - - return $ret; -} - -/** - * Changed comment settings from global to per-node -- copy global - * settings to all node types. - */ -function comment_update_6002() { - // Comment module might not be enabled when this is run, but we need the - // constants defined by the module for this update. - drupal_load('module', 'comment'); - $settings = array( - 'comment_default_mode' => COMMENT_MODE_THREADED_EXPANDED, - 'comment_default_order' => COMMENT_ORDER_NEWEST_FIRST, - 'comment_default_per_page' => 50, - 'comment_controls' => COMMENT_CONTROLS_HIDDEN, - 'comment_anonymous' => COMMENT_ANONYMOUS_MAYNOT_CONTACT, - 'comment_subject_field' => 1, - 'comment_preview' => COMMENT_PREVIEW_REQUIRED, - 'comment_form_location' => COMMENT_FORM_SEPARATE_PAGE, - ); - $types = node_type_get_types(); - foreach ($settings as $setting => $default) { - $value = variable_get($setting, $default); - foreach ($types as $type => $object) { - variable_set($setting . '_' . $type, $value); - } - variable_del($setting); - } - return array(array('success' => TRUE, 'query' => 'Global comment settings copied to all node types.')); -} - -/** - * Add index to parent ID field. - */ -function comment_update_6003() { - $ret = array(); - db_add_index($ret, 'comments', 'pid', array('pid')); - - 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 * @{ */ |