function backup_migrate_destination_email_save in Backup and Migrate 5.2
Email save destination callback.
1 string reference to 'backup_migrate_destination_email_save'
- backup_migrate_backup_migrate_destination_types in includes/
destinations.inc - Implementation of hook_backup_migrate_destination_types().
File
- includes/
destinations.email.inc, line 12 - Functions to handle the email backup destination.
Code
function backup_migrate_destination_email_save($destination, $file, &$settings) {
if ($to = @$destination['location']) {
$attachment = new stdClass();
$attachment->filename = $settings['filename'];
$attachment->path = $file;
_backup_migrate_destination_email_mail_backup($attachment, $to);
return $file;
}
}