summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonan Dowling2009-08-01 16:19:03 (GMT)
committer Ronan Dowling2009-08-01 16:19:03 (GMT)
commit6ceed90038e421c27224ef175f21cc1d26b10a16 (patch)
treea6098c35092de4990ae31764bf20fc4a02867a63
parent7e4959746ff4a025e52858d61eebf510e1e2d219 (diff)
Removed hook_exit implementation to make compatible with aggressive caching. Temp file cleanup should be happening explicitely or during the shutdown function
-rw-r--r--backup_migrate.module13
1 files changed, 1 insertions, 12 deletions
diff --git a/backup_migrate.module b/backup_migrate.module
index 3b2f612..9bd3a66 100644
--- a/backup_migrate.module
+++ b/backup_migrate.module
@@ -151,17 +151,6 @@ function backup_migrate_cron() {
}
/**
- * Implementation of hook_exit().
- */
-function backup_migrate_exit() {
- if (function_exists('drupal_get_path')) {
- backup_migrate_include('files');
- // Delete any temporary files generated during this execution.
- backup_migrate_cleanup();
- }
-}
-
-/**
* Implementation of hook_perm().
*/
function backup_migrate_perm() {
@@ -677,7 +666,7 @@ function backup_migrate_perform_restore($destination_id, $file_id, $settings = a
set_time_limit(variable_get('backup_migrate_backup_max_time', 1200));
}
- // Register shutdown callback
+ // Register shutdown callback.
register_shutdown_function('backup_migrate_cleanup');
// Load the file from the destination.