You are here

function hacked_reports_rebuild in Hacked! 7.2

Same name and namespace in other branches
  1. 6.2 hacked.report.inc \hacked_reports_rebuild()

Page callback to rebuild the hacked report.

1 string reference to 'hacked_reports_rebuild'
hacked_menu in ./hacked.module
Implementation of hook_menu().

File

./hacked.report.inc, line 26
Report building utilities.

Code

function hacked_reports_rebuild() {

  // We're going to be borrowing heavily from the update module
  module_load_include('inc', 'update', 'update.report');
  if ($available = update_get_available(TRUE)) {
    module_load_include('inc', 'update', 'update.compare');
    $data = update_calculate_project_data($available);
    hacked_calculate_project_data($data, TRUE, 'admin/reports/hacked');
  }
  drupal_goto('admin/reports/hacked');
}