function hacked_build_report_batch_finished in Hacked! 7.2
Same name and namespace in other branches
- 8.2 hacked.report.inc \hacked_build_report_batch_finished()
- 6.2 hacked.report.inc \hacked_build_report_batch_finished()
Completion callback for the report batch.
1 string reference to 'hacked_build_report_batch_finished'
- hacked_calculate_project_data in ./
hacked.module - Compute the report data for hacked.
File
- ./
hacked.report.inc, line 57 - Report building utilities.
Code
function hacked_build_report_batch_finished($success, $results, $operations) {
if ($success) {
// Sort the results.
usort($results['report'], '_hacked_project_report_sort_by_status');
// Store them.
cache_set('hacked:full-report', $results['report'], HACKED_CACHE_TABLE, strtotime('+1 day'));
variable_set('hacked_last_report', time());
}
}