function nodeaccess_uninstall in Nodeaccess 7
Same name and namespace in other branches
- 5 nodeaccess.install \nodeaccess_uninstall()
- 6.2 nodeaccess.install \nodeaccess_uninstall()
- 6 nodeaccess.install \nodeaccess_uninstall()
Implements hook_uninstall().
File
- ./
nodeaccess.install, line 152 - Install/uninstall functions for Nodeaccess.
Code
function nodeaccess_uninstall() {
// Remove variables.
variable_del('nodeaccess-priority');
variable_del('nodeaccess-preserve');
variable_del('nodeaccess-grants');
variable_del('nodeaccess-roles');
variable_del('nodeaccess-types');
variable_del('nodeaccess_authors');
foreach (node_type_get_types() as $type => $name) {
variable_del('nodeaccess_' . $type);
variable_del('nodeaccess_' . $type . '_userreference');
}
// Remove tables.
drupal_uninstall_schema('nodeaccess');
}