function hacked_build_report_batch in Hacked! 7.2
Same name and namespace in other branches
- 8.2 hacked.report.inc \hacked_build_report_batch()
- 6.2 hacked.report.inc \hacked_build_report_batch()
Batch callback to build the hacked report.
1 string reference to 'hacked_build_report_batch'
- hacked_calculate_project_data in ./
hacked.module - Compute the report data for hacked.
File
- ./
hacked.report.inc, line 40 - Report building utilities.
Code
function hacked_build_report_batch($project_name, &$context) {
// Add missing dependencies if the module isn't installed.
if (function_exists('drush_verify_cli') && drush_verify_cli()) {
hacked_load_drush_dependencies();
}
if (!isset($context['results']['report'])) {
$context['results']['report'] = array();
}
$project = new hackedProject($project_name);
$context['results']['report'][$project_name] = $project
->compute_report();
$context['message'] = t('Finished processing: @name', array(
'@name' => $project
->title(),
));
}