function acl_get_id_by_name in ACL 6
Same name and namespace in other branches
- 8 acl.module \acl_get_id_by_name()
- 5 acl.module \acl_get_id_by_name()
- 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));
}