You are here

function commerce_product_ui_product_title in Commerce Core 7

Menu item title callback: returns the SKU of a product for its pages.

Parameters

$product: The product object as loaded via the URL wildcard.

Return value

A page title of the format "Product: [SKU]".

1 call to commerce_product_ui_product_title()
EntityTranslationCommerceProductHandler::entityFormTitle in modules/product/includes/commerce_product.translation_handler.inc
1 string reference to 'commerce_product_ui_product_title'
commerce_product_ui_menu in modules/product/commerce_product_ui.module
Implements hook_menu().

File

modules/product/commerce_product_ui.module, line 128

Code

function commerce_product_ui_product_title($product) {
  return t('Product: @sku', array(
    '@sku' => $product->sku,
  ));
}