function views_plugin_access_role::options_submit

3.x views_plugin_access_role.inc views_plugin_access_role::options_submit(&$form, &$form_state)
2.x views_plugin_access_role.inc views_plugin_access_role::options_submit(&$form, &$form_state)

Provide the default form form for submitting options

Overrides views_plugin_access::options_submit

File

plugins/views_plugin_access_role.inc, line 50

Class

views_plugin_access_role
Access plugin that provides role-based access control.

Code

function options_submit(&$form, &$form_state) {
  // I hate checkboxes.
  $form_state['values']['access_options']['role'] = array_filter($form_state['values']['access_options']['role']);
}