function backup_migrate_temp_files_add in Backup and Migrate 7.2
Same name and namespace in other branches
- 8.2 includes/files.inc \backup_migrate_temp_files_add()
- 8.3 includes/files.inc \backup_migrate_temp_files_add()
- 6.3 includes/files.inc \backup_migrate_temp_files_add()
- 6.2 includes/files.inc \backup_migrate_temp_files_add()
- 7.3 includes/files.inc \backup_migrate_temp_files_add()
Add a file to the temporary files list for deletion when we're done.
3 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_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;
}
}