You are here

function acl_get_id_by_name in ACL 6

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

Gets the id of an ACL by name.

File

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

Code

function acl_get_id_by_name($module, $name) {
  return db_result(db_query("SELECT acl_id FROM {acl} WHERE module = '%s' AND name = '%s'", $module, $name));
}