You are here

function acl_get_uids in ACL 5

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

Gets the uids of an acl

File

./acl.module, line 217
acl.module

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;
}