You are here

public function simple_access_views_plugin_group::options_form in Simple Access 7.2

Same name and namespace in other branches
  1. 6.2 views/simple_access_views_plugin_group.inc \simple_access_views_plugin_group::options_form()

Provide the default form for setting options.

Overrides views_plugin_access::options_form

File

views/simple_access_views_plugin_group.inc, line 54
Views access plugin to make use of cimple access.

Class

simple_access_views_plugin_group
@file Views access plugin to make use of cimple access.

Code

public function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $options = array_map(array(
    'simple_access_views_plugin_group',
    '_map_groups',
  ), simple_access_get_groups());
  $form['groups'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Simple access groups'),
    '#default_value' => $this->options['groups'],
    '#options' => $options,
    '#description' => t('Only the checked simple access groups will be able to access this display. Note that users with "access all views" can see any view, regardless of role.'),
  );
}