Follow up on issue #1154108 by Steven Jones.
authorSteven Jones
Fri, 27 May 2011 20:37:38 +0000 (21:37 +0100)
committerSteven Jones
Fri, 27 May 2011 20:48:19 +0000 (21:48 +0100)
Add an additional description to the backups added during clone/migrate.

modules/hosting/clone/hosting_clone.drush.inc
modules/hosting/migrate/hosting_migrate.drush.inc

index 7679975..ad3666f 100644 (file)
@@ -62,7 +62,8 @@ function hosting_clone_post_hosting_clone_task($task, $data) {
 
     node_save($clone);
 
-    // record the backup created
+    // Record the backup created during clone.
+    $task->task_args['description'] = t('Pre-clone backup');
     hosting_site_post_hosting_backup_task($task, $data);
   }
 }
index b2a0858..ef8646f 100644 (file)
@@ -85,7 +85,8 @@ function hosting_migrate_post_hosting_migrate_task($task, $data) {
     hosting_package_sync($packages);
     hosting_package_instance_sync($task->ref->nid, $packages);
 
-    // record the backup created
+    // Record the backup created during migrate.
+    $task->task_args['description'] = t('Pre-migration backup');
     hosting_site_post_hosting_backup_task($task, $data);
   }
 }