You are here

function acl_get_uids in ACL 7

Same name and namespace in other branches
  1. 8 acl.module \acl_get_uids()
  2. 5 acl.module \acl_get_uids()
  3. 6 acl.module \acl_get_uids()

Get the uids of an ACL.

1 call to acl_get_uids()
acl_node_access_explain in ./acl.module
Implements hook_node_access_explain().

File

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

Code

function acl_get_uids($acl_id) {
  $uids = db_query("SELECT uid FROM {acl_user} WHERE acl_id = :acl_id", array(
    'acl_id' => $acl_id,
  ))
    ->fetchCol();
  return $uids;
}