function views_plugin_access_role::options_form

Same name in other branches
  1. 7.x-3.x plugins/views_plugin_access_role.inc \views_plugin_access_role::options_form()

Overrides views_plugin_access::options_form

File

plugins/views_plugin_access_role.inc, line 38

Class

views_plugin_access_role
Access plugin that provides role-based access control.

Code

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