You are here

function views_data_export_file_presave in Views data export 7.4

Implements hook_file_presave().

File

./views_data_export.module, line 275
Provides the ability to export to specific

Code

function views_data_export_file_presave($file) {

  // Ensure temporary files really are temporary.
  // @see: https://drupal.org/node/2198399
  if (strpos($file->filename, 'views_data_export') === 0) {

    // There is no FILE_STATUS_TEMPORARY.
    $file->status = 0;
  }
}