function simplify_uninstall in Simplify 7.3
Same name and namespace in other branches
- 7.2 simplify.install \simplify_uninstall()
Implements hook_uninstall().
File
- ./
simplify.install, line 21 - Install, update and uninstall functions for the Simplify module.
Code
function simplify_uninstall() {
// Delete global variables
variable_del('simplify_nodes_global');
variable_del('simplify_users_global');
variable_del('simplify_comments_global');
variable_del('simplify_taxonomy_global');
// Delete node & comment variables
$node_types = node_type_get_names();
foreach ($node_types as $type => $name) {
variable_del('simplify_nodes_' . $type);
variable_del('simplify_comments_' . $type);
}
// Delete taxonomy variables
if (module_exists('taxonomy')) {
$vocabularies = taxonomy_vocabulary_get_names();
foreach ($vocabularies as $name => $vocabulary) {
variable_del('simplify_taxonomy_' . $name);
}
}
}