function simple_access_node_delete in Simple Access 7.2
Same name and namespace in other branches
- 8.3 simple_access.module \simple_access_node_delete()
Implements hook_node_delete().
File
- ./
simple_access.module, line 280 - This module allows administrators to make nodes viewable by specific 'access groups'. Each access group can contain any number of roles. If a node is not assigned to any access groups, it will remain viewable by all users.
Code
function simple_access_node_delete($node) {
foreach (array(
'simple_access_node',
'simple_access_owner',
'simple_access_profiles_node',
) as $table) {
db_delete($table)
->condition('nid', $node->nid)
->execute();
}
}