Révision 7b2d1845
Ajouté par Assos Assos il y a presque 4 ans
drupal7/sites/all/modules/webform/includes/exporters/webform_exporter_excel_delimited.inc | ||
---|---|---|
52 | 52 |
*/ |
53 | 53 |
public function set_headers($filename) { |
54 | 54 |
drupal_add_http_header('Content-Type', 'application/x-msexcel'); |
55 |
drupal_add_http_header('Content-Disposition', "attachment; filename=$filename.xls");
|
|
55 |
drupal_add_http_header('Content-Disposition', 'attachment; filename=' . $this->get_filename($filename));
|
|
56 | 56 |
drupal_add_http_header('Pragma', 'public'); |
57 | 57 |
drupal_add_http_header('Cache-Control', 'max-age=0'); |
58 | 58 |
} |
59 | 59 |
|
60 |
/** |
|
61 |
* {@inheritdoc} |
|
62 |
*/ |
|
63 |
public function get_filename($filename) { |
|
64 |
return $filename . '.xls'; |
|
65 |
} |
|
66 |
|
|
60 | 67 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules