function backup_migrate_restore_confirm_submit in Backup and Migrate 6
Same name and namespace in other branches
- 5 backup_migrate.module \backup_migrate_restore_confirm_submit()
File
- ./
backup_migrate.module, line 353 - Create (manually or scheduled) and restore backups of your Drupal MySQL database with an option to exclude table data (f.e. cache_*)
Code
function backup_migrate_restore_confirm_submit($form, &$form_state) {
$path = $form_state['values']['path'];
if ($path = _backup_migrate_path_is_in_save_dir($path)) {
_backup_migrate_restore_file($path);
watchdog('backup_migrate', 'Database restored from %file', array(
'%file' => $path,
));
}
$form_state['redirect'] = user_access('access backup files') ? "admin/content/backup_migrate/files" : "admin/content/backup_migrate";
}