You are here

function commerce_reports_block_view in Commerce Reporting 7.3

Same name and namespace in other branches
  1. 7.4 commerce_reports.module \commerce_reports_block_view()

Implements hook_block_view().

Implementation of the custom blocks defined by commerce_reports.

File

./commerce_reports.module, line 89

Code

function commerce_reports_block_view($delta = '') {
  module_load_include('inc', 'commerce_reports', 'commerce_reports.blocks');
  switch ($delta) {
    case 'commerce_reports_sales':
      return commerce_reports_sales();
    case 'commerce_reports_customers':
      return commerce_reports_customers();
    case 'commerce_reports_customer_map':
      return commerce_reports_customer_map();
  }
}