function nodeaccess_revoke_grants in Nodeaccess 7
Revoke all custom grants from nodeaccess table for this node. Essentially reset the grants to their default state (by node type).
Parameters
$node: node object whose grants are being revoked.
File
- ./
nodeaccess.module, line 1037 - Provide per node access control
Code
function nodeaccess_revoke_grants($node) {
nodeaccess_delete_grants($node);
node_access_acquire_grants($node);
}