You are here

function _webform_csv_data_file in Webform 7.3

Same name and namespace in other branches
  1. 5.2 components/file.inc \_webform_csv_data_file()
  2. 5 components/file.inc \_webform_csv_data_file()
  3. 6.3 components/file.inc \_webform_csv_data_file()
  4. 6.2 components/file.inc \_webform_csv_data_file()
  5. 7.4 components/file.inc \_webform_csv_data_file()

Implements _webform_csv_data_component().

File

components/file.inc, line 479
Webform module file component.

Code

function _webform_csv_data_file($component, $export_options, $value) {
  $file = webform_get_file($value[0]);
  return empty($file->filename) ? array(
    '',
    '',
  ) : array(
    webform_file_url($file->uri),
    (int) ($file->filesize / 1024),
  );
}