function simple_access_settings_page in Simple Access 6.2
Same name and namespace in other branches
- 5.2 simple_access.module \simple_access_settings_page()
- 5 simple_access.module \simple_access_settings_page()
- 7.2 simple_access.admin.inc \simple_access_settings_page()
1 string reference to 'simple_access_settings_page'
- simple_access_menu in ./
simple_access.module - Implementation of hook_menu().
File
- ./
simple_access.admin.inc, line 228 - House all the admin functions in inc to make the foot print a lot smaller.
Code
function simple_access_settings_page() {
drupal_set_title(t('Simple Access Settings'));
$options = array(
'view' => t('<strong>View</strong>: Displays viewability selections at top of node form. Selected access groups will be the only users who can view the node. All unselected = normal node behavior (viewable by all).<br />'),
'update' => t('<strong>Edit</strong>: Displays editability selections at top of node form. Users who are part of selected access groups will be able to edit this node. All unselected = "normal" node behavior (only author and admins may edit).<br />'),
'delete' => t('<strong>Delete</strong>: Displays deleteability selections at top of node form. Users who are part of selected access groups will be able to delete this node. All unselected = "normal" node behavior (only author and admins may delete).<br />'),
);
$form['sa_display'] = array(
'#type' => 'checkboxes',
'#title' => t('Display'),
'#default_value' => variable_get('sa_display', array(
'view',
)),
'#options' => $options,
'#description' => t('Which options should appear on node add/edit pages for administrators? Select at least one.'),
'#required' => TRUE,
);
$form['sa_showgroups'] = array(
'#type' => 'checkbox',
'#title' => 'Show groups even when user is not a member.',
'#default_value' => variable_get('sa_showgroups', 0),
'#description' => 'This is useful when you want to have a user be able to make content viewable by themselves and a higher privileged group (e.g. students sharing work with faculty)',
);
return system_settings_form($form);
}