You are here

function webform_results_export_success in Webform 7.4

Save the last-exported sid for new-only exports.

Parameters

$node: The webform node.

$export_info: Export information array retrieved from webform_results_export().

2 calls to webform_results_export_success()
webform_results_batch_results in includes/webform.report.inc
Batch API callback; Set the $_SESSION variables used to download the file.
webform_results_download in includes/webform.report.inc
Send a generated webform results file to the user's browser.

File

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

Code

function webform_results_export_success($node, $export_info) {
  if (!in_array($export_info['options']['range']['range_type'], array(
    'range',
    'range_serial',
    'range_date',
  )) && !empty($export_info['last_sid'])) {
    webform_update_webform_last_download($node, $GLOBALS['user']->uid, $export_info['last_sid'], REQUEST_TIME);
  }
}