You are here

function hosting_task_drush_init in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 task/hosting_task.drush.inc \hosting_task_drush_init()
  2. 7.3 task/hosting_task.drush.inc \hosting_task_drush_init()

Implements hook_drush_init().

This function registers a shutdown function to update the task status after drush completes it's run.

The call to register_shutdown_function() is needed to ensure we get a status update no matter what happens with drush.

File

task/hosting_task.drush.inc, line 16
Drush hooks for the hosting_task module.

Code

function hosting_task_drush_init() {

  // Update a task's status after Drush operations are complete.
  register_shutdown_function('hosting_task_drush_update_status');
}