function commerce_reports_menu in Commerce Reporting 7.3
Same name and namespace in other branches
- 7.4 commerce_reports.module \commerce_reports_menu()
- 7.2 commerce_reports.module \commerce_reports_menu()
Implements hook_menu().
File
- ./
commerce_reports.module, line 25
Code
function commerce_reports_menu() {
$items = array();
$items['admin/commerce/reports'] = array(
'title' => 'Reports',
'description' => 'View reports for your store.',
'access arguments' => array(
'access commerce reports',
),
// Inherited by children.
'page callback' => 'commerce_reports_dashboard',
'file' => 'commerce_reports.dashboard.inc',
'weight' => -20,
);
$items['admin/commerce/reports/dashboard'] = array(
'title' => 'Dashboard',
'description' => 'View reports for your store.',
'type' => MENU_DEFAULT_LOCAL_TASK,
'file' => 'commerce_reports.dashboard.inc',
'weight' => 0,
);
return $items;
}