You are here

function hook_commerce_reports_reportable_order_states_alter in Commerce Reporting 7.4

Allow modules to add additional states to report on.

Parameters

array $order_states:

1 invocation of hook_commerce_reports_reportable_order_states_alter()
commerce_reports_reportable_order_states in ./commerce_reports.module
Returns the order states to report on.

File

./commerce_reports.api.php, line 90
Hooks provided by Commerce Reports.

Code

function hook_commerce_reports_reportable_order_states_alter(array $order_states) {

  // https://www.drupal.org/node/2345319
  if (module_exists('commerce_billy')) {
    $order_states[] = 'invoiced';
  }
}