You are here

function content_access_get_acl_id in Content Access 6

Same name and namespace in other branches
  1. 8 content_access.module \content_access_get_acl_id()
  2. 7 content_access.module \content_access_get_acl_id()

Gets the content access acl id of the node.

4 calls to content_access_get_acl_id()
content_access_action_acl_grant_access in ./content_access.rules.inc
Action implementation: Grant access for a user.
content_access_action_acl_revoke_access in ./content_access.rules.inc
Action implementation: Revoke access for a user.
content_access_delete_per_node_settings in ./content_access.module
Deletes all custom per node settings, so that content type defaults are used again.
content_access_page in ./content_access.admin.inc
Per node settings page.

File

./content_access.module, line 421
Content access module file.

Code

function content_access_get_acl_id($node, $op) {
  $acl_id = acl_get_id_by_name('content_access', $op . '_' . $node->nid);
  if (!$acl_id) {

    // Create one:
    $acl_id = acl_create_new_acl('content_access', $op . '_' . $node->nid);
  }
  return $acl_id;
}