function backup_migrate_destination::create_info_file in Backup and Migrate 8.2
Same name and namespace in other branches
- 8.3 includes/destinations.inc \backup_migrate_destination::create_info_file()
- 6.3 includes/destinations.inc \backup_migrate_destination::create_info_file()
- 7.3 includes/destinations.inc \backup_migrate_destination::create_info_file()
- 7.2 includes/destinations.inc \backup_migrate_destination::create_info_file()
1 call to backup_migrate_destination::create_info_file()
- backup_migrate_destination::save_file_info in includes/
destinations.inc - Save the file metadata
File
- includes/
destinations.inc, line 677
Class
- backup_migrate_destination
- A base class for creating destinations.
Code
function create_info_file($file) {
$info = new backup_file(array(
'filename' => $file
->filename() . '.info',
));
$data = _backup_migrate_array_to_ini($file->file_info);
$info
->put_contents($data);
return $info;
}