function backup_migrate_ui_destination_restore_file in Backup and Migrate 5.2
Same name and namespace in other branches
- 8.2 includes/destinations.inc \backup_migrate_ui_destination_restore_file()
- 8.3 includes/destinations.inc \backup_migrate_ui_destination_restore_file()
- 6.3 includes/destinations.inc \backup_migrate_ui_destination_restore_file()
- 6.2 includes/destinations.inc \backup_migrate_ui_destination_restore_file()
- 7.3 includes/destinations.inc \backup_migrate_ui_destination_restore_file()
- 7.2 includes/destinations.inc \backup_migrate_ui_destination_restore_file()
Restore a backup file from a destination.
1 string reference to 'backup_migrate_ui_destination_restore_file'
- backup_migrate_menu in ./
backup_migrate.module - Implementation of hook_menu().
File
- includes/
destinations.inc, line 527 - All of the destination handling code needed for Backup and Migrate.
Code
function backup_migrate_ui_destination_restore_file($destination_id, $file_id) {
if ($file = backup_migrate_destination_get_file($destination_id, $file_id)) {
return drupal_get_form('backup_migrate_ui_destination_restore_file_confirm', $destination_id, $file_id);
}
drupal_goto(user_access('access backup files') ? "admin/content/backup_migrate/destination/files/" . $destination_id : "admin/content/backup_migrate");
}