summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-31 16:31:59 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-31 16:31:59 +0000
commit9544110e01816cd78e73a6756f856d2d8b07bbd1 (patch)
tree2304d0c1aeb18be26cb3cd5be52b9a6b2ae273ba
parent0c8af272e0b46ceb7657adaf96d975351cfebf8c (diff)
downloadbrdo-9544110e01816cd78e73a6756f856d2d8b07bbd1.tar.gz
brdo-9544110e01816cd78e73a6756f856d2d8b07bbd1.tar.bz2
#361130 by Dave Reid: Clean up comment variables on uninstall.
-rw-r--r--modules/comment/comment.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install
index e0c9d622b..0ae7e1980 100644
--- a/modules/comment/comment.install
+++ b/modules/comment/comment.install
@@ -15,6 +15,21 @@ function comment_install() {
function comment_uninstall() {
// Remove tables.
drupal_uninstall_schema('comment');
+
+ // Remove variables.
+ variable_del('comment_block_count');
+ $node_types = array_keys(node_get_types());
+ foreach ($node_types as $node_type) {
+ variable_del('comment_' . $node_type);
+ variable_del('comment_anonymous_' . $node_type);
+ variable_del('comment_controls_' . $node_type);
+ variable_del('comment_default_mode_' . $node_type);
+ variable_del('comment_default_order_' . $node_type);
+ variable_del('comment_default_per_page_' . $node_type);
+ variable_del('comment_form_location_' . $node_type);
+ variable_del('comment_preview_' . $node_type);
+ variable_del('comment_subject_field_' . $node_type);
+ }
}
/**