Commit 9544110e authored by webchick's avatar webchick

#361130 by Dave Reid: Clean up comment variables on uninstall.

parent 0c8af272
......@@ -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);
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment