function acl_node_add_acl in ACL 7
Same name and namespace in other branches
- 8 acl.module \acl_node_add_acl()
- 5 acl.module \acl_node_add_acl()
- 6 acl.module \acl_node_add_acl()
Provide access control to a node based upon an ACL id.
1 call to acl_node_add_acl()
- AclWebTestCase::testNodeAclAddRemoveFromNode in tests/
acl.test - Includes acl_node_add_acl, acl_node_remove_acl, acl_node_clear_acls
File
- ./
acl.module, line 135 - An API module providing by-user access control lists.
Code
function acl_node_add_acl($nid, $acl_id, $view, $update, $delete, $priority = 0) {
acl_node_add_acl_record(array(
'acl_id' => $acl_id,
'nid' => $nid,
'grant_view' => (int) $view,
'grant_update' => (int) $update,
'grant_delete' => (int) $delete,
'priority' => $priority,
));
}