You are here

function acl_has_users in ACL 5

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

Determines if an acl has some assigned users

1 call to acl_has_users()
acl_node_access_records in ./acl.module
Implementation of hook_node_access_grants (from node_access)

File

./acl.module, line 210
acl.module

Code

function acl_has_users($acl_id) {
  return db_result(db_query("SELECT COUNT(aclu.uid) FROM {acl_user} aclu WHERE acl_id = %d", $acl_id));
}