function acl_node_remove_acl in ACL 8
Same name and namespace in other branches
- 5 acl.module \acl_node_remove_acl()
- 6 acl.module \acl_node_remove_acl()
- 7 acl.module \acl_node_remove_acl()
Remove an ACL completely from a node.
1 call to acl_node_remove_acl()
- AclTest::testNodeAclAddRemoveFromNode in src/
Tests/ AclTest.php - Includes acl_node_add_acl, acl_node_remove_acl, acl_node_clear_acls
File
- ./
acl.module, line 198 - An API module providing by-user access control lists.
Code
function acl_node_remove_acl($nid, $acl_id) {
\Drupal::database()
->delete('acl_node')
->condition('acl_id', $acl_id)
->condition('nid', $nid)
->execute();
}