You are here

function acl_get_uids in ACL 6

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

Gets the uids of an acl

File

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

Code

function acl_get_uids($acl_id) {
  $result = db_query("SELECT uid FROM {acl_user} WHERE acl_id = '%d'", $acl_id);
  $return = array();
  while ($row = db_fetch_object($result)) {
    $return[$row->uid] = $row->uid;
  }
  return empty($return) ? NULL : $return;
}