You are here

function content_access_get_acl_id in Content Access 7

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

Gets the content access acl id of the node.

3 calls to content_access_get_acl_id()
content_access_action_user in content_access_rules/content_access_rules.rules.inc
Process Rule's param, and grant by the passed operation.
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 653
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) {
    $acl_id = acl_create_new_acl('content_access', $op . '_' . $node->nid);
  }
  return $acl_id;
}