You are here

function views_data_export_plugin_display_export::options_submit in Views data export 7.4

Same name and namespace in other branches
  1. 6.3 plugins/views_data_export_plugin_display_export.inc \views_data_export_plugin_display_export::options_submit()
  2. 6 plugins/views_data_export_plugin_display_export.inc \views_data_export_plugin_display_export::options_submit()
  3. 6.2 plugins/views_data_export_plugin_display_export.inc \views_data_export_plugin_display_export::options_submit()
  4. 7 plugins/views_data_export_plugin_display_export.inc \views_data_export_plugin_display_export::options_submit()
  5. 7.3 plugins/views_data_export_plugin_display_export.inc \views_data_export_plugin_display_export::options_submit()

Save the options from the options form.

Overrides views_plugin_display_feed::options_submit

File

plugins/views_data_export_plugin_display_export.inc, line 183
Contains the bulk export display plugin.

Class

views_data_export_plugin_display_export
The plugin that batches its rendering.

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 'use_batch':
      $this
        ->set_option('use_batch', $form_state['values']['use_batch']);
      $this
        ->set_option('segment_size', $form_state['values']['segment_size']);
      $this
        ->set_option('return_path', $form_state['values']['return_path']);
      break;
  }
}