You are here

function webform_results_batch_bof in Webform 7.4

Batch API callback; Write the opening byte in the export file.

1 string reference to 'webform_results_batch_bof'
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 1451
This file includes helper functions for creating reports for webform.module.

Code

function webform_results_batch_bof($node, $format = 'delimited', $options = array(), &$context = NULL) {
  module_load_include('inc', 'webform', 'includes/webform.export');
  $exporter = webform_export_create_handler($format, $options);
  $handle = fopen($options['file_name'], 'w');
  if (!$handle) {
    return;
  }
  $exporter
    ->bof($handle);
  @fclose($handle);
}