Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
9544110e
Commit
9544110e
authored
Jan 31, 2009
by
Angie Byron
Browse files
#361130
by Dave Reid: Clean up comment variables on uninstall.
parent
0c8af272
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/comment/comment.install
View file @
9544110e
...
...
@@ -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
);
}
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment