commerce_reports.module in Commerce Reporting 7.2
File
commerce_reports.module
View source
<?php
function commerce_reports_menu() {
$items = array();
$items['admin/commerce/reports'] = array(
'title' => 'Reports',
'description' => 'View reports for your store.',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'access commerce reports',
),
'type' => MENU_NORMAL_ITEM,
'weight' => 50,
'file path' => drupal_get_path('module', 'system'),
'file' => 'system.admin.inc',
);
return $items;
}
function commerce_reports_permission() {
return array(
'access commerce reports' => array(
'title' => t('Access commerce reports'),
),
);
}
function commerce_reports_views_api() {
return array(
'api' => 3,
'path' => drupal_get_path('module', 'commerce_reports') . '/includes/views',
);
}