function nodeblock_uninstall in Nodeblock 7
Implements hook_uninstall().
File
- ./
nodeblock.install, line 230 - Define module install logic.
Code
function nodeblock_uninstall() {
$types = node_type_get_types();
foreach ($types as $type_name => $type) {
if (variable_get('nodeblock_' . $type_name, 0)) {
variable_del('nodeblock_' . $type_name);
variable_del('nodeblock_comment_link_' . $type_name);
variable_del('nodeblock_node_link_' . $type_name);
variable_del('nodeblock_view_mode_' . $type_name);
variable_del('nodeblock_node_overrides_' . $type_name);
variable_del('nodeblock_node_override_block_available_' . $type_name);
variable_del('nodeblock_node_override_block_title_field_' . $type_name);
}
}
db_delete('block')
->condition('module', 'nodeblock')
->execute();
db_delete('block_role')
->condition('module', 'nodeblock')
->execute();
variable_del('nodeblock_dangerous_force_block_caching');
variable_del('nodeblock_table_exists');
}