function drush_hosting_task_rollback

7.x-3.x task.hosting.inc drush_hosting_task_rollback()

Rollback hook for the hosting-task Drush command.

See also

hook_hosting_TASK_TYPE_task_rollback()

File

./task.hosting.inc, line 152
Drush include for the Hosting module's hosting task command.

Code

function drush_hosting_task_rollback() {
  $task = &drush_get_context('HOSTING_TASK');
  $hook = sprintf("hosting_%s_task_rollback", str_replace('-', '_', $task->task_type));
  drush_log(dt('Invoking :hook hooks.', array(':hook' => $hook)));
  module_invoke_all($hook, $task, drush_get_context('HOSTING_DRUSH_OUTPUT'));
}