You are here

function hacked_reports_hacked in Hacked! 6.2

Same name and namespace in other branches
  1. 5 hacked.module \hacked_reports_hacked()
  2. 6 hacked.module \hacked_reports_hacked()
  3. 7.2 hacked.report.inc \hacked_reports_hacked()

Page callback to build up a full report.

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

File

./hacked.report.inc, line 7

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