You are here

function views_content_plugin_display_panel_pane::options_submit in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 views_content/plugins/views/views_content_plugin_display_panel_pane.inc \views_content_plugin_display_panel_pane::options_submit()

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

File

views_content/plugins/views/views_content_plugin_display_panel_pane.inc, line 320

Class

views_content_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;
  }
}