#1154108 by darthsteven - record backups from clone and migrate
authorAntoine Beaupré
Fri, 20 May 2011 21:39:40 +0000 (17:39 -0400)
committerSteven Jones
Fri, 27 May 2011 20:48:08 +0000 (21:48 +0100)
modules/hosting/clone/hosting_clone.drush.inc
modules/hosting/migrate/hosting_migrate.drush.inc

index 3274f55..7679975 100644 (file)
@@ -61,6 +61,9 @@ function hosting_clone_post_hosting_clone_task($task, $data) {
     }
 
     node_save($clone);
+
+    // record the backup created
+    hosting_site_post_hosting_backup_task($task, $data);
   }
 }
 
index 05aff29..b2a0858 100644 (file)
@@ -84,5 +84,8 @@ function hosting_migrate_post_hosting_migrate_task($task, $data) {
     $packages = $context['packages'];
     hosting_package_sync($packages);
     hosting_package_instance_sync($task->ref->nid, $packages);
+
+    // record the backup created
+    hosting_site_post_hosting_backup_task($task, $data);
   }
 }