You are here

function hacked_build_report_batch_finished_drush in Hacked! 7.2

Same name and namespace in other branches
  1. 8.2 hacked.drush.inc \hacked_build_report_batch_finished_drush()
  2. 6.2 hacked.drush.inc \hacked_build_report_batch_finished_drush()

Completion callback for the report batch.

1 string reference to 'hacked_build_report_batch_finished_drush'
hacked_calculate_project_data_drush in ./hacked.drush.inc
Compute the report data for hacked.

File

./hacked.drush.inc, line 154

Code

function hacked_build_report_batch_finished_drush($success, $results, $operations) {
  if ($success) {

    // Sort the results.
    usort($results['report'], '_hacked_project_report_sort_by_status');

    // Store them.
    drush_cache_set('hacked:drush:full-report', $results['report'], HACKED_CACHE_TABLE, strtotime('+1 day'));
  }
}