You are here

function acl_edit_form in ACL 7

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

Provide a form to edit the ACL that can be embedded in other forms.

Pass $new_acl=TRUE if you have no ACL yet, but do supply a string like 'my_module_new_acl' as $acl_id anyway; create the ACL and set $form['acl_id'] before calling acl_save_form().

File

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

Code

function acl_edit_form(&$form_state, $acl_id, $label = NULL, $new_acl = FALSE) {
  $form_state['build_info']['files'][] = _acl_module_load_include('admin.inc');
  return _acl_edit_form($acl_id, $label, $new_acl);
}