1 views_plugin_display_block.inc views_plugin_display_block::options_submit(&$form, &$form_state)

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::options_submit

File

core/modules/views/plugins/views_plugin_display_block.inc, line 397
Contains the block display plugin.

Class

views_plugin_display_block
The plugin that handles a block.

Code

function options_submit(&$form, &$form_state) {
  // It is very important to call the parent function here:
  parent::options_submit($form, $form_state);
  switch ($form_state['section']) {
    case 'block_description':
    case 'allow':
    case 'argument_input':
    case 'link_to_view':
    case 'inherit_path':
    case 'block_caching':
      $this->set_option($form_state['section'], $form_state['values'][$form_state['section']]);
      break;
  }
}