You are here

function uc_product_i18nsync_fields_alter in Ubercart 6.2

Implements hook_i18nsync_fields_alter().

Allows fields to be synchronised when translations are in use.

File

uc_product/uc_product.module, line 934
The product module for Ubercart.

Code

function uc_product_i18nsync_fields_alter($fields, $type) {
  if (uc_product_is_product($type)) {
    $fields['uc_products']['#title'] = t('Product fields');
    $fields['uc_products']['#options'] = array(
      'model' => t('SKU'),
      'list_price' => t('List price'),
      'cost' => t('Cost'),
      'sell_price' => t('Sell price'),
      'weight' => t('Weight'),
      'weight_units' => t('Weight units'),
      'dim_length' => t('Length'),
      'dim_width' => t('Width'),
      'dim_height' => t('Height'),
      'length_units' => t('Dimension units'),
      'pkg_qty' => t('Package quantity'),
      'default_qty' => t('Default quantity to add to cart'),
      'ordering' => t('List position'),
    );
  }
}