function backup_migrate_filter_utils::add_file_info in Backup and Migrate 8.2
Same name and namespace in other branches
- 8.3 includes/filters.utils.inc \backup_migrate_filter_utils::add_file_info()
- 6.3 includes/filters.utils.inc \backup_migrate_filter_utils::add_file_info()
- 7.3 includes/filters.utils.inc \backup_migrate_filter_utils::add_file_info()
- 7.2 includes/filters.utils.inc \backup_migrate_filter_utils::add_file_info()
Add the backup metadata to the file.
1 call to backup_migrate_filter_utils::add_file_info()
- backup_migrate_filter_utils::post_backup in includes/
filters.utils.inc - This function is called immediately post backup.
File
- includes/
filters.utils.inc, line 144 - A filter to run some basic utility functions. Basically any useful option not big enough to justify it's own class.
Class
- backup_migrate_filter_utils
- A filter to send a notification email on success or failure of backup.
Code
function add_file_info($file, $settings) {
$file->file_info['description'] = $settings->filters['utils_description'];
$file->file_info['datestamp'] = time();
$file->file_info['generator'] = 'Backup and Migrate (http://drupal.org/project/backup_migrate)';
$file->file_info['generatorversion'] = BACKUP_MIGRATE_VERSION;
$file->file_info['sites'] = array(
'0' => array(
'version' => VERSION,
'name' => variable_get('site_name', ''),
'url' => url('', array(
'absolute' => TRUE,
)),
),
);
}