You are here

function uc_store_reports in Ubercart 5

Same name and namespace in other branches
  1. 6.2 uc_store/uc_store.admin.inc \uc_store_reports()
  2. 7.3 uc_store/uc_store.admin.inc \uc_store_reports()

Display main reports page.

1 string reference to 'uc_store_reports'
uc_store_menu in uc_store/uc_store.module
Implementation of hook_menu().

File

uc_store/uc_store.module, line 935
Contains global Ubercart functions and store administration functionality.

Code

function uc_store_reports() {
  $menu = menu_get_item(NULL, 'admin/store/reports');
  $content = system_admin_menu_block($menu);
  $message = module_exists('uc_reports') ? t('Various reports generated by Ubercart modules can be found here. Click the links below to view the reports.') : t('Various reports generated by Ubercart modules can be found here. Click the links below to view the reports. To view core Ubercart statistics enable the <strong>Reports</strong> module on the <a href="!url">module administration page</a>', array(
    '!url' => url('admin/build/modules'),
  ));
  $output = $message . theme('admin_block_content', $content);
  return $output;
}