You are here

function simple_access_profile_disable_form in Simple Access 8.3

Same name and namespace in other branches
  1. 6.2 simple_access.module \simple_access_profile_disable_form()
  2. 7.2 simple_access.module \simple_access_profile_disable_form()

Configure disable security profile.

File

./simple_access.module, line 822
Builds simple access definition for content access.

Code

function simple_access_profile_disable_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;
}