You are here

function commerce_reports_geckoboard_geckoboardapi in Commerce Reporting 7.3

Same name and namespace in other branches
  1. 7.4 modules/geckoboard/commerce_reports_geckoboard.module \commerce_reports_geckoboard_geckoboardapi()

Implements hook_geckoboard().

I'm starting to think most of the text widgets should be created through the UI using tokens, rather than defined here.

File

modules/geckoboard/commerce_reports_geckoboard.module, line 9

Code

function commerce_reports_geckoboard_geckoboardapi() {
  $services = array();
  $services['commerce_sales_daily'] = array(
    'callback' => 'commerce_reports_geckoboard_sales_daily',
    'type' => 'text',
  );
  $services['commerce_sales_weekly'] = array(
    'callback' => 'commerce_reports_geckoboard_sales_weekly',
    'type' => 'text',
  );
  $services['commerce_sales_monthly'] = array(
    'callback' => 'commerce_reports_geckoboard_sales_monthly',
    'type' => 'text',
  );
  $services['commerce_sales_yearly'] = array(
    'callback' => 'commerce_reports_geckoboard_sales_yearly',
    'type' => 'text',
  );
  $services['commerce_revenue_monthly'] = array(
    'callback' => 'commerce_reports_geckoboard_revenue_monthly',
    'type' => 'text',
  );
  $services['commerce_order_processing_rag'] = array(
    'callback' => 'commerce_reports_geckoboard_order_processing_rag',
    'type' => 'rag',
  );
  $services['commerce_order_status_rag'] = array(
    'callback' => 'commerce_reports_geckoboard_order_status_rag',
    'type' => 'rag',
  );
  return $services;
}