You are here

hosting_backup_queue.drush.inc in Hosting Site Backup Manager 6.2

Same filename and directory in other branches
  1. 7.3 hosting_backup_queue/hosting_backup_queue.drush.inc

File

hosting_backup_queue/hosting_backup_queue.drush.inc
View source
<?php

/**
 * Implementation of hook_hosting_post_backup
 *
 * Changes the last backup timestamp of the site to the task time.
 */
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);
  }
}

/**
 * Implementation of hook_hosting_post_backup_delete
 *
 * Changes the last backup timestamp of the site to the task time.
 */
function hosting_backup_queue_post_hosting_backup_delete_task($task, $data) {
  if ($task->ref->type == 'site') {
    hosting_backup_queue_backup_time_clear($task->ref->nid);
  }
}

Functions

Namesort descending Description
hosting_backup_queue_post_hosting_backup_delete_task Implementation of hook_hosting_post_backup_delete
hosting_backup_queue_post_hosting_backup_task Implementation of hook_hosting_post_backup