function commerce_reports_commerce_reports_dashboard in Commerce Reporting 7.4
Same name and namespace in other branches
- 7.3 commerce_reports.module \commerce_reports_commerce_reports_dashboard()
Implements hook_commerce_reports_dashboard().
File
- ./
commerce_reports.module, line 319 - Module file for Commerce Reports.
Code
function commerce_reports_commerce_reports_dashboard() {
return array(
'overview_today' => array(
'title' => t('Today'),
'report' => array(
'title' => t('Sales reports'),
'path' => 'admin/commerce/reports/sales',
),
'sections' => array(
'today' => array(
'module' => 'views',
'block' => 'ff7824695a12b49a79aee7d394cbd917',
),
),
'weight' => 20,
),
'overview_yesterday' => array(
'title' => t('Yesterday'),
'report' => array(
'title' => t('Sales reports'),
'path' => 'admin/commerce/reports/sales',
),
'sections' => array(
'today' => array(
'module' => 'views',
'block' => '1a260a710ed0ccc9e8175e7301e597fe',
),
),
'weight' => 60,
),
'overview_monthly' => array(
'title' => t('Last 30 days'),
'report' => array(
'title' => t('Sales reports'),
'path' => 'admin/commerce/reports/sales',
),
'sections' => array(
'today' => array(
'module' => 'views',
'block' => '724c01e6b3c93b66c793ff63f7402697',
),
),
'weight' => 80,
),
'sales' => array(
'title' => t('Sales'),
'type' => COMMERCE_REPORTS_DASHBOARD_ROW,
'switchSections' => TRUE,
'report' => array(
'title' => t('Sales reports'),
'path' => 'admin/commerce/reports/sales',
),
'sections' => array(
'year' => array(
'title' => t('Year'),
'module' => 'views',
'block' => 'cc437fbe6b867b448dc946fd925800a3',
),
'month' => array(
'title' => t('Month'),
'module' => 'views',
'block' => '1127e4706efe2c1eb8537a65a644e572',
),
'week' => array(
'title' => t('Week'),
'module' => 'views',
'block' => 'd70fc459675538d56c73a9f90574211a',
),
),
'weight' => 100,
),
'customers' => array(
'title' => t('Customers'),
'report' => array(
'title' => t('Customer reports'),
'path' => 'admin/commerce/reports/customers',
),
'sections' => array(
'revenue' => array(
'module' => 'views',
'block' => 'f3f98e42ba2d4d3103b95e9199cf48fe',
),
),
'weight' => 200,
),
'products' => array(
'title' => t('Products'),
'switchSections' => TRUE,
'report' => array(
'title' => t('Product reports'),
'path' => 'admin/commerce/reports/products',
),
'sections' => array(
'revenue' => array(
'title' => t('Revenue'),
'module' => 'views',
'block' => 'commerce_reports_products-chart_revenue',
),
'quantity' => array(
'title' => t('Quantity'),
'module' => 'views',
'block' => '31eccd6666389cf554f290e91ef9848a',
),
),
'weight' => 240,
),
'customer_statistics' => array(
'title' => t('Customer statistics'),
'sections' => array(
'customers' => array(
'module' => 'views',
'block' => 'e5caeb6059c44dfa5008c4ff7c6f04be',
),
),
'weight' => 280,
),
'billing_information' => array(
'title' => t('Billing information'),
'switchSections' => TRUE,
'type' => COMMERCE_REPORTS_DASHBOARD_BROAD_BLOCK,
'report' => array(
'title' => t('Customer profiles'),
'path' => 'admin/commerce/customer-profiles',
),
'sections' => array(
'billing_profiles' => array(
'title' => t('Billing'),
'module' => 'views',
'block' => 'c143b512518b3a7c6b30be35b192abbf',
),
'shipping_profiles' => array(
'title' => t('Shipping'),
'module' => 'views',
'block' => '5efb68bd488bc78cae2aac5b8ddc29a6',
),
),
'weight' => 300,
),
'sales_statistics' => array(
'title' => t('Sales statistics'),
'sections' => array(
'sales' => array(
'module' => 'commerce_reports',
'block' => 'commerce_reports_sales',
),
),
'weight' => 310,
),
);
}