You are here

function piwik_reports_menu_block_page in Piwik Reports 7.2

Same name and namespace in other branches
  1. 6 piwik_reports.pages.inc \piwik_reports_menu_block_page()

Report menu links

1 string reference to 'piwik_reports_menu_block_page'
piwik_reports_menu in ./piwik_reports.module
Implements hook_menu().

File

./piwik_reports.pages.inc, line 11
Reports callback for Piwik Reports

Code

function piwik_reports_menu_block_page() {
  $item = menu_get_item();
  if ($content = system_admin_menu_block($item)) {
    $output = theme('admin_block_content', array(
      'content' => $content,
    ));
  }
  else {
    $output = '<p>' . t('You do not have any reports.') . '</p>';
  }
  return $output;
}