You are here

function hosting_backup_queue_post_hosting_backup_task in Hosting Site Backup Manager 6.2

Same name and namespace in other branches
  1. 7.3 hosting_backup_queue/hosting_backup_queue.drush.inc \hosting_backup_queue_post_hosting_backup_task()

Implementation of hook_hosting_post_backup

Changes the last backup timestamp of the site to the task time.

File

hosting_backup_queue/hosting_backup_queue.drush.inc, line 9

Code

function hosting_backup_queue_post_hosting_backup_task($task, $data) {
  if ($data['context']['backup_file'] && $task->ref->type == 'site') {
    hosting_backup_queue_backup_time_update($task->ref->nid, $task->executed);
  }
}