You are here

function freepager_plugin_display_pagerblock::options_submit in Free pager 7.2

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

File

./freepager_plugin_display_pagerblock.inc, line 96
Contains the block display plugin.

Class

freepager_plugin_display_pagerblock
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);

  // Set some variables to increase code readability.
  $freepager_settings = freepager_settings();
  $section =& $form_state['section'];

  // If one of Free pager's settings are submitted, make sure to save them.
  if (isset($freepager_settings[$section])) {
    $this
      ->set_option($section, $form_state['values'][$section]);
  }
}