You are here

function panels_plugin_display_panel_pane::options_submit in Panels 6.2

Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.

File

panels_views/panels_plugin_display_panel_pane.inc, line 302

Class

panels_plugin_display_panel_pane
The plugin that handles a panel_pane.

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 'allow':
    case 'argument_input':
    case 'link_to_view':
    case 'inherit_panels_path':
    case 'pane_title':
    case 'pane_description':
    case 'pane_category':
      $this
        ->set_option($form_state['section'], $form_state['values'][$form_state['section']]);
      break;
  }
}