You are here

hosting_backup_queue.drush.inc in Hosting Site Backup Manager 7.3

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

Drush hook implementations.

File

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

/**
 * @file
 * Drush hook implementations.
 */

/**
 * Implements 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);
  }
}

/**
 * Implements 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 Implements hook_hosting_post_backup_delete().
hosting_backup_queue_post_hosting_backup_task Implements hook_hosting_post_backup().