function node_expire_uninstall in Node expire 7
Same name and namespace in other branches
- 8 node_expire.install \node_expire_uninstall()
- 5 node_expire.install \node_expire_uninstall()
- 6.2 node_expire.install \node_expire_uninstall()
- 6 node_expire.install \node_expire_uninstall()
- 7.2 node_expire.install \node_expire_uninstall()
Implements hook_uninstall().
File
- ./
node_expire.install, line 52 - Install, uninstall and update the module.
Code
function node_expire_uninstall() {
// TODO The drupal_(un)install_schema
// functions are called automatically in D7.
// drupal_uninstall_schema('node_expire').
//
// Delete global variable.
variable_del('node_expire_ntypes');
// Delete configuration variables.
variable_del('node_expire_handle_content_expiry');
variable_del('node_expire_date_entry_elements');
variable_del('node_expire_past_date_allowed');
// Delete node type related variables.
$types = node_type_get_types();
foreach ($types as $type) {
variable_del('node_expire_' . $type->type);
variable_del('node_expire_enabled_' . $type->type);
variable_del('node_expire_max_' . $type->type);
variable_del('node_expire_required_' . $type->type);
}
}