You are here

function commerce_reports_tax_schema_alter in Commerce Reporting 7

Same name and namespace in other branches
  1. 7.2 modules/tax/commerce_reports_tax.module \commerce_reports_tax_schema_alter()

Implements hook_schema_alter().

File

commerce_reports_tax/commerce_reports_tax.module, line 24

Code

function commerce_reports_tax_schema_alter(&$schema) {
  $rates = commerce_tax_rates();
  foreach ($rates as $type => $rate) {
    $schema['commerce_reports_tax']['fields'][$type] = array(
      'type' => 'int',
      'not null' => FALSE,
      'default' => NULL,
      'description' => $rate['display_title'],
    );
  }
}