function hosting_site_backup_manager_export in Hosting Site Backup Manager 6
Same name and namespace in other branches
- 6.2 hosting_site_backup_manager.module \hosting_site_backup_manager_export()
- 7.3 hosting_site_backup_manager.module \hosting_site_backup_manager_export()
The form submit function.
1 string reference to 'hosting_site_backup_manager_export'
- hosting_site_backup_manager_menu in ./
hosting_site_backup_manager.module - Implements of hook_menu().
File
- ./
hosting_site_backup_manager.module, line 280 - Hosting site backup manager module.
Code
function hosting_site_backup_manager_export($site, $bid) {
// Get the filename.
$source = db_fetch_object(db_query("SELECT filename FROM {hosting_site_backups} WHERE site=%d AND bid=%d ORDER BY timestamp DESC", $site->nid, $bid));
// Start the task.
hosting_add_task($site->nid, 'export_backup', array(
'backup' => $source->filename,
));
// Redirect to the backups page.
drupal_goto('node/' . $site->nid . '/backups');
}