You are here

function backup_migrate_temp_files_add in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 8.2 includes/files.inc \backup_migrate_temp_files_add()
  2. 6.3 includes/files.inc \backup_migrate_temp_files_add()
  3. 6.2 includes/files.inc \backup_migrate_temp_files_add()
  4. 7.3 includes/files.inc \backup_migrate_temp_files_add()
  5. 7.2 includes/files.inc \backup_migrate_temp_files_add()

Add a file to the temporary files list for deletion when we're done.

4 calls to backup_migrate_temp_files_add()
backup_file::temporary_file in includes/files.inc
Get a temporary file name with path.
backup_migrate_destination_browser_upload::load_file in includes/destinations.browser.inc
File load destination callback.
backup_migrate_temp_directory in includes/files.inc
Create a temporary directory.
_backup_migrate_temp_files_delete in includes/files.inc
Delete all temporary files.

File

includes/files.inc, line 14
General file handling code for Backup and Migrate.

Code

function backup_migrate_temp_files_add($filepath = NULL) {
  static $files = array();
  if (!$filepath) {
    return $files;
  }
  else {
    $files[] = $filepath;
  }
}