You are here

public function views_plugin_access_role::options_submit in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_access_role.inc \views_plugin_access_role::options_submit()
  2. 6.2 plugins/views_plugin_access_role.inc \views_plugin_access_role::options_submit()

Provide the default form form for submitting options.

Overrides views_plugin_access::options_submit

File

plugins/views_plugin_access_role.inc, line 83
Definition of views_plugin_access_role.

Class

views_plugin_access_role
Access plugin that provides role-based access control.

Code

public function options_submit(&$form, &$form_state) {

  // I hate checkboxes.
  $form_state['values']['access_options']['role'] = array_filter($form_state['values']['access_options']['role']);
}