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