You are here

function hacked_build_report_batch in Hacked! 6.2

Same name and namespace in other branches
  1. 8.2 hacked.report.inc \hacked_build_report_batch()
  2. 7.2 hacked.report.inc \hacked_build_report_batch()

Batch callback to build the hacked report.

2 string references to 'hacked_build_report_batch'
hacked_calculate_project_data in ./hacked.module
Compute the report data for hacked.
hacked_calculate_project_data_drush in ./hacked.drush.inc
Compute the report data for hacked.

File

./hacked.report.inc, line 37

Code

function hacked_build_report_batch($project_name, &$context) {
  if (!isset($context['results']['report'])) {
    $context['results']['report'] = array();
  }
  module_load_include('inc', 'hacked', 'includes/hacked_project');
  $project = new hackedProject($project_name);
  $context['results']['report'][$project_name] = $project
    ->compute_report();
  $context['message'] = t('Finished processing: @name', array(
    '@name' => $project
      ->title(),
  ));
}