diff options
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.install | 15 |
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); + } } /** |