You are here

function views_node_access_plugin_access_node_type::options_submit in Views node access 7

Same name and namespace in other branches
  1. 6 views_node_access_plugin_access_node_type.inc \views_node_access_plugin_access_node_type::options_submit()

Provide the default form form for submitting options.

Overrides views_plugin_access::options_submit

File

./views_node_access_plugin_access_node_type.inc, line 51
Views access plugin that provides node-type-based access control.

Class

views_node_access_plugin_access_node_type
@file Views access plugin that provides node-type-based access control.

Code

function options_submit(&$form, &$form_state) {
  $form_state['values']['access_options']['node_types'] = array_filter($form_state['values']['access_options']['node_types']);
}