You are here

function vbo_hide_plugin_display_extender::options_submit in VBO Hide 7

Perform any necessary changes to the form values prior to storage.

There is no need for this function to actually store the data.

Overrides views_plugin_display_extender::options_submit

File

views/vbo_hide_plugin_display_extender.inc, line 46
Views plugin handler. Contains all relevant options and related logic. Implements the Views Form API.

Class

vbo_hide_plugin_display_extender
@file Views plugin handler. Contains all relevant options and related logic. Implements the Views Form API.

Code

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

  // Call parent method so that default functionality not override.
  parent::options_submit($form, $form_state);
  $vbo_hide = isset($form_state['values']['vbo_hide']) ? $form_state['values']['vbo_hide'] : 0;

  // If no value in any how for VBO hide, then will store 0.
  switch ($form_state['section']) {
    case 'vbo_hide':
      $this->display
        ->set_option('vbo_hide', $vbo_hide);
      break;
  }
}