You are here

function hacked_reports_hacked in Hacked! 6

Same name and namespace in other branches
  1. 5 hacked.module \hacked_reports_hacked()
  2. 6.2 hacked.report.inc \hacked_reports_hacked()
  3. 7.2 hacked.report.inc \hacked_reports_hacked()
1 string reference to 'hacked_reports_hacked'
hacked_menu in ./hacked.module
Implementation of hook_menu().

File

./hacked.module, line 171
The Hacked! module, shows which project have been changed since download.

Code

function hacked_reports_hacked() {

  // 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);
    $data = hacked_calculate_project_data($data);
    return theme('hacked_report', $data);
  }
  else {
    return theme('update_report', _update_no_data());
  }
}