function backup_migrate_ui_destination_restore_file_confirm in Backup and Migrate 5.2
Same name and namespace in other branches
- 8.2 includes/destinations.inc \backup_migrate_ui_destination_restore_file_confirm()
- 8.3 includes/destinations.inc \backup_migrate_ui_destination_restore_file_confirm()
- 6.3 includes/destinations.inc \backup_migrate_ui_destination_restore_file_confirm()
- 6.2 includes/destinations.inc \backup_migrate_ui_destination_restore_file_confirm()
- 7.3 includes/destinations.inc \backup_migrate_ui_destination_restore_file_confirm()
- 7.2 includes/destinations.inc \backup_migrate_ui_destination_restore_file_confirm()
Ask confirmation for file restore.
1 string reference to 'backup_migrate_ui_destination_restore_file_confirm'
- backup_migrate_ui_destination_restore_file in includes/
destinations.inc - Restore a backup file from a destination.
File
- includes/
destinations.inc, line 537 - All of the destination handling code needed for Backup and Migrate.
Code
function backup_migrate_ui_destination_restore_file_confirm($destination_id, $file_id) {
$form['destination_id'] = array(
'#type' => 'value',
'#value' => $destination_id,
);
$form['file_id'] = array(
'#type' => 'value',
'#value' => $file_id,
);
return confirm_form($form, t('Are you sure you want to restore the database?'), "admin/content/backup_migrate/destination/files/" . $destination_id, t('Are you sure you want to restore the database from the backup file %file_id? This will delete some or all of your data and cannot be undone. <strong>Always test your backups on a non-production server!</strong>', array(
'%file_id' => $file_id,
)), t('Restore'), t('Cancel'));
}