function node_view_permissions_uninstall in Node View Permissions 7
Same name and namespace in other branches
- 8 node_view_permissions.install \node_view_permissions_uninstall()
Implements hook_uninstall().
File
- ./
node_view_permissions.install, line 11 - Contains install and unistall hooks.
Code
function node_view_permissions_uninstall() {
// Remove variables for all node types, which are set by our module.
$query = db_delete('variable');
$query
->condition('name', 'node_view_permissions_%', 'LIKE');
$query
->execute();
if (count(module_implements('node_grants'))) {
node_access_needs_rebuild(TRUE);
}
}