commerce_product_entity_translation_supported_type

  1. commerce
    1. 7
Versions
7 commerce_product_entity_translation_supported_type($type)

Returns whether the given product type has support for translations.

Parameters

$type The machine-name of the product type to check for translation support.

Return value

TRUE or FALSE indicating translation support for the requested type.

Code

modules/product/commerce_product.module, line 914

<?php
function commerce_product_entity_translation_supported_type($type) {
  return variable_get('language_product_type_' . $type, 0) == ENTITY_TRANSLATION_ENABLED;
}
?>