function _backup_migrate_restore_from_server in Backup and Migrate 6
Same name and namespace in other branches
- 5 backup_migrate.module \_backup_migrate_restore_from_server()
Restore a backup file (from the server)
1 string reference to '_backup_migrate_restore_from_server'
- backup_migrate_menu in ./
backup_migrate.module - Implementation of hook_menu().
File
- ./
backup_migrate.module, line 335 - 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_from_server() {
// Merge remainder of arguments from GET['q'], into relative file path.
$args = func_get_args();
$path = implode('/', $args);
if ($path = _backup_migrate_path_is_in_save_dir($path)) {
return drupal_get_form('backup_migrate_restore_confirm', $path);
}
drupal_goto(user_access('access backup files') ? "admin/content/backup_migrate/files" : "admin/content/backup_migrate");
}