Révision 8c72e82a
Ajouté par Assos Assos il y a environ 7 ans
drupal7/sites/all/modules/webform/includes/exporters/webform_exporter.inc | ||
---|---|---|
4 | 4 |
* @file |
5 | 5 |
* Base class defining the common methods available to exporters. |
6 | 6 |
*/ |
7 |
|
|
8 | 7 |
class webform_exporter { |
9 | 8 |
public $options = array(); |
10 | 9 |
public $export_wordrap; |
... | ... | |
40 | 39 |
*/ |
41 | 40 |
function wrappable($row, $column, $value) { |
42 | 41 |
return strpos($value, "\n") !== FALSE || |
43 |
$this->export_wordwrap && ($row > 2 || $column > 0 || $this->options['header_keys'] < 0);
|
|
42 |
$this->export_wordwrap && ($row > 2 || $column > 0 || $this->options['header_keys'] < 0); |
|
44 | 43 |
} |
45 | 44 |
|
46 | 45 |
/** |
... | ... | |
60 | 59 |
* Provide headers to the page when an export file is being downloaded. |
61 | 60 |
* |
62 | 61 |
* @param $filename |
63 |
* The name of the file being downloaded. e.g. export.xls.
|
|
62 |
* The name of the file being downloaded, for example, export.xls.
|
|
64 | 63 |
*/ |
65 | 64 |
function set_headers($filename) { |
66 | 65 |
drupal_add_http_header('Content-Type', 'application/force-download'); |
Formats disponibles : Unified diff
Weekly update of contrib modules