function simple_access_profile_disable_form in Simple Access 6.2
Same name and namespace in other branches
- 8.3 simple_access.module \simple_access_profile_disable_form()
- 7.2 simple_access.module \simple_access_profile_disable_form()
Configure disable security profile
File
- ./
simple_access.module, line 924 - This module allows administrators to make nodes viewable by specific 'access groups'. Each access group can contain any number of roles. If a node is not assigned to any access groups, it will remain viewable by all users.
Code
function simple_access_profile_disable_form($settings = array()) {
$form = array();
$form['sa_profiles'] = array(
'#type' => 'checkboxes',
'#title' => t('Access profiles'),
'#default_value' => empty($settings['sa_profiles']) ? array() : $settings['sa_profiles'],
'#options' => simple_access_get_profiles_select(),
'#description' => t('Select permissions to grant for the content owner'),
);
return $form;
}