You are here

function acl_node_add_acl_record in ACL 7

Same name and namespace in other branches
  1. 8 acl.module \acl_node_add_acl_record()

Provide access control to a node based upon an ACL id.

1 call to acl_node_add_acl_record()
acl_node_add_acl in ./acl.module
Provide access control to a node based upon an ACL id.

File

./acl.module, line 149
An API module providing by-user access control lists.

Code

function acl_node_add_acl_record(array $record) {
  db_delete('acl_node')
    ->condition('acl_id', $record['acl_id'])
    ->condition('nid', $record['nid'])
    ->execute();
  db_insert('acl_node')
    ->fields($record)
    ->execute();
}