function simple_access_owner_grant_form in Simple Access 7.2
Same name and namespace in other branches
- 8.3 simple_access.module \simple_access_owner_grant_form()
- 6.2 simple_access.module \simple_access_owner_grant_form()
Configure grant content owner permissions.
File
- ./
simple_access.module, line 873 - 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_owner_grant_form($settings = array()) {
$form = array();
$form['sa_owner_permissions'] = array(
'#type' => 'checkboxes',
'#title' => t('Grant owner permissions'),
'#default_value' => empty($settings['sa_owner_permissions']) ? array() : $settings['sa_owner_permissions'],
'#options' => array(
'sa_view' => t('View'),
'sa_update' => t('Update'),
'sa_delete' => t('Delete'),
),
'#description' => t('Select permissions to grant for the content owner'),
);
return $form;
}