You are here

function uc_store_reports in Ubercart 6.2

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

Displays main reports page.

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

File

uc_store/uc_store.admin.inc, line 305
Store administration menu items.

Code

function uc_store_reports() {
  $menu = menu_get_item('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;
}