You are here

function webform_results_batch_post_process in Webform 7.4

Batch API callback; Do any last processing on the finished export.

1 string reference to 'webform_results_batch_post_process'
webform_results_export_batch in includes/webform.report.inc
Return a Batch API array of commands that will generate an export.

File

includes/webform.report.inc, line 1574
This file includes helper functions for creating reports for webform.module.

Code

function webform_results_batch_post_process($node, $format = 'delimited', $options = array(), &$context = NULL) {
  module_load_include('inc', 'webform', 'includes/webform.export');
  $context['results']['node'] = $node;
  $context['results']['file_name'] = $options['file_name'];
  $exporter = webform_export_create_handler($format, $options);
  $exporter
    ->post_process($context['results']);
}