function acl_get_id_by_number in ACL 7
Same name and namespace in other branches
- 6 acl.module \acl_get_id_by_number()
Get the id of an ACL by number.
File
- ./
acl.module, line 199 - An API module providing by-user access control lists.
Code
function acl_get_id_by_number($module, $number) {
$query = db_select('acl', 'a')
->fields('a', array(
'acl_id',
))
->condition('a.module', $module)
->condition('a.number', $number);
return $query
->execute()
->fetchField();
}