function revisioning_uninstall in Revisioning 6.4
Same name and namespace in other branches
- 8 revisioning.install \revisioning_uninstall()
- 6 revisioning.install \revisioning_uninstall()
- 6.3 revisioning.install \revisioning_uninstall()
- 7 revisioning.install \revisioning_uninstall()
Implementation of hook_uninstall().
File
- ./
revisioning.install, line 19 - Install and uninstall hooks for Revisioning module
Code
function revisioning_uninstall() {
variable_del('page_manager_override_anyway');
// see above
variable_del('revisioning_view_callback');
variable_del('revisioning_edit_callback');
variable_del('revisioning_block_num_pending');
variable_del('revisioning_block_order');
variable_del('revisioning_content_summary_page');
// Remove 'revision_moderation' from all node_options_<content_type> variables
foreach (node_get_types() as $type) {
// Maybe these 2 vars should be used in array, like 'revision_moderation'?
variable_del('revisioning_auto_publish_' . $type->type);
variable_del('new_revisions_' . $type->type);
$variable_name = 'node_options_' . $type->type;
if ($node_options = variable_get($variable_name, NULL)) {
$node_options = array_diff($node_options, array(
'revision_moderation',
));
variable_set($variable_name, $node_options);
}
}
}