You are here

public function views_plugin_display_attachment::options_submit in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_display_attachment.inc \views_plugin_display_attachment::options_submit()
  2. 6.2 plugins/views_plugin_display_attachment.inc \views_plugin_display_attachment::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.

Overrides views_plugin_display::options_submit

File

plugins/views_plugin_display_attachment.inc, line 241
Definition of views_plugin_display_attachment.

Class

views_plugin_display_attachment
The plugin that handles an attachment display.

Code

public 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 'show_title':
    case 'show_title_empty':
    case 'inherit_arguments':
    case 'inherit_pager':
    case 'render_pager':
    case 'inherit_exposed_filters':
    case 'attachment_position':
    case 'displays':
      $this
        ->set_option($form_state['section'], $form_state['values'][$form_state['section']]);
      break;
  }
}