commerce_product_entity_translation_tab_access

  1. commerce
    1. 7
Versions
7 commerce_product_entity_translation_tab_access($product)

Access callback: determines access to a product's translation tab.

Code

modules/product/commerce_product.module, line 895

<?php
function commerce_product_entity_translation_tab_access($product) {
  if (!empty($product->language) && $product->language != LANGUAGE_NONE) {
    if (commerce_product_entity_translation_supported_type($product->type)) {
      return entity_translation_tab_access('commerce_product');
    }
  }

  return FALSE;
}
?>