You are here

public function webform_exporter::set_headers in Webform 7.3

Same name and namespace in other branches
  1. 5.2 webform_export.inc \webform_exporter::set_headers()
  2. 6.3 includes/webform.export.inc \webform_exporter::set_headers()
  3. 6.2 webform_export.inc \webform_exporter::set_headers()
  4. 7.4 includes/exporters/webform_exporter.inc \webform_exporter::set_headers()
1 call to webform_exporter::set_headers()
webform_exporter_delimited::set_headers in includes/webform.export.inc
1 method overrides webform_exporter::set_headers()
webform_exporter_delimited::set_headers in includes/webform.export.inc

File

includes/webform.export.inc, line 93
Provides several different handlers for exporting webform results.

Class

webform_exporter

Code

public function set_headers($filename) {
  drupal_add_http_header('Content-Type', 'application/force-download');
  drupal_add_http_header('Pragma', 'public');
  drupal_add_http_header('Cache-Control', 'max-age=0');
}