You are here

function block_access_module_form in Block Access 6

Same name and namespace in other branches
  1. 6.2 block_access.admin.inc \block_access_module_form()
  2. 7 block_access.admin.inc \block_access_module_form()
1 string reference to 'block_access_module_form'
block_access_menu in ./block_access.module

File

./block_access.admin.inc, line 18

Code

function block_access_module_form(&$form_state, $op = NULL, $module = NULL) {
  $form = array();
  $form['module'] = array(
    '#type' => 'hidden',
    '#value' => $module,
  );
  $role_options = user_roles();
  block_access_fieldset($form, $role_options, 'view', $module);
  block_access_fieldset($form, $role_options, 'move', $module);
  block_access_fieldset($form, $role_options, 'enable', $module);
  block_access_fieldset($form, $role_options, 'disable', $module);
  block_access_fieldset($form, $role_options, 'config', $module);
  block_access_fieldset($form, $role_options, 'delete', $module);
  block_access_fieldset($form, $role_options, 'config_lang', $module);
  block_access_fieldset($form, $role_options, 'config_spec', $module);
  block_access_fieldset($form, $role_options, 'config_user', $module);
  block_access_fieldset($form, $role_options, 'config_role', $module);
  block_access_fieldset($form, $role_options, 'config_page', $module);
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}