You are here

function hosting_site_post_hosting_backup_delete_task in Hostmaster (Aegir) 6

Implementation of the hosting_post_backup_delete hook

File

modules/hosting/site/hosting_site.drush.inc, line 260

Code

function hosting_site_post_hosting_backup_delete_task($task, $data) {
  if ($task->ref->type == 'site') {
    foreach ($task->task_args as $bid => $filename) {
      if ($filename !== '0') {
        hosting_site_delete_backup($bid);
      }
    }
  }
}