function simple_access_profile_enable_form in Simple Access 8.3
Same name and namespace in other branches
- 6.2 simple_access.module \simple_access_profile_enable_form()
- 7.2 simple_access.module \simple_access_profile_enable_form()
Configure enable security profile.
File
- ./
simple_access.module, line 784 - Builds simple access definition for content access.
Code
function simple_access_profile_enable_form($context = []) {
$form = [];
$form['sa_profiles'] = [
'#type' => 'checkboxes',
'#title' => t('Access profiles'),
'#default_value' => empty($context['sa_profiles']) ? [] : $context['sa_profiles'],
'#options' => simple_access_get_profiles_select(),
'#description' => t('Select permissions to grant for the content owner'),
];
return $form;
}