You are here

function hacked_build_report_batch_drush in Hacked! 7.2

Batch callback to build the hacked report.

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

File

./hacked.drush.inc, line 138

Code

function hacked_build_report_batch_drush($project_name, &$context) {
  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'] = dt('Finished processing: @name', array(
    '@name' => $project
      ->title(),
  ));
}