You are here

function acl_get_id_by_number in ACL 6

Same name and namespace in other branches
  1. 7 acl.module \acl_get_id_by_number()

Gets the id of an ACL by number.

File

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

Code

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