You are here

function acl_create_new_acl in ACL 5

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

Create a new ACL.

File

./acl.module, line 15
acl.module

Code

function acl_create_new_acl($module, $name) {
  $acl_id = db_next_id('{acl}_acl_id');
  db_query("INSERT INTO {acl} (acl_id, module, name) VALUES (%d, '%s', '%s')", $acl_id, $module, $name);
  return $acl_id;
}