function hosting_task_drush_update_status in Hosting 6.2
Same name and namespace in other branches
- 7.4 task/hosting_task.drush.inc \hosting_task_drush_update_status()
- 7.3 task/hosting_task.drush.inc \hosting_task_drush_update_status()
Shutdown function to catch any task status.
1 string reference to 'hosting_task_drush_update_status'
- hosting_task_drush_init in task/
hosting_task.drush.inc - Implements hook_drush_init().
File
- task/
hosting_task.drush.inc, line 24 - Drush hooks for the hosting_task module.
Code
function hosting_task_drush_update_status() {
$task = drush_get_context('HOSTING_TASK');
if (!empty($task)) {
$message = _hosting_parse_error_code(hosting_task_update_status($task));
drush_log(dt('Updated task status to "!log"', array(
'!log' => $message,
)), 'info');
}
}