You are here

function i18n_commerce_product_schema_alter in Internationalization for commerce product 7

Implements hook_schema_alter().

File

./i18n_commerce_product.install, line 11
Installation file for i18n_commerce_product module.

Code

function i18n_commerce_product_schema_alter(&$schema) {

  // Add field to existing schema.
  $schema['commerce_product']['fields']['tproduct_id'] = array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => FALSE,
    'default' => 0,
    'description' => 'The translation set id for this commerce product, which equals the product id of the source post in each set.',
  );
}