You are here

function commerce_product_entity_translation_supported_type in Commerce Core 7

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.

1 string reference to 'commerce_product_entity_translation_supported_type'
commerce_product_entity_info in modules/product/commerce_product.module
Implements hook_entity_info().

File

modules/product/commerce_product.module, line 1088
Defines the core Commerce product entity, including the entity itself, the bundle definitions (product types), and various API functions to manage products and interact with them through forms and autocompletes.

Code

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