function config_perms_admin_form in Custom Permissions 6.2
Same name and namespace in other branches
- 7.2 config_perms.admin.inc \config_perms_admin_form()
Administration form
1 string reference to 'config_perms_admin_form'
- config_perms_menu in ./
config_perms.module - Implementation of hook_menu().
File
- ./
config_perms.admin.inc, line 11 - Admin pages
Code
function config_perms_admin_form(&$form_state, $type = '') {
$form['perms'] = array(
'#type' => 'fieldset',
'#title' => t('Site Configuration Permissions'),
'#description' => '<p>' . t("Please note that the order in which permissions are granted are as follows:") . '</p>' . "<ul>" . "<li>" . t("User 1 still maintains full control") . "<li>" . t("Nothing will be available under Site building if 'display site building menu' is not checked") . "<li>" . t("Nothing will be available under Site configuration if 'display site configuration menu' is not checked") . "</ul>",
//'<p>'. t("So in other words, if you want grant roles only a few of theses items, uncheck 'administer site configuration', check one or both of the display permissions, and check whatever you want them to have access to.") .'</p>',
'#collapsible' => 1,
'#collapsed' => 0,
);
//config_perms_cache_rebuild();
$perms = config_perms_perms();
//print_r($perms);
$form['perms']['local'] = array(
'#theme' => 'config_perms_form',
'#tree' => TRUE,
'#prefix' => '<div id="config_perms-wrapper">',
'#suffix' => '</div>',
);
$form['perms']['local'] += _config_perms_form($perms);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
);
return $form;
}