You are here

function commerce_product_theme in Commerce Core 7

Same name and namespace in other branches
  1. 8.2 modules/product/commerce_product.module \commerce_product_theme()

Implements hook_theme().

File

modules/product/commerce_product.module, line 262
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_theme() {
  return array(
    'commerce_product_sku' => array(
      'variables' => array(
        'sku' => NULL,
        'label' => NULL,
        'product' => NULL,
      ),
      'path' => drupal_get_path('module', 'commerce_product') . '/theme',
      'template' => 'commerce-product-sku',
    ),
    'commerce_product_title' => array(
      'variables' => array(
        'title' => NULL,
        'label' => NULL,
        'product' => NULL,
      ),
      'path' => drupal_get_path('module', 'commerce_product') . '/theme',
      'template' => 'commerce-product-title',
    ),
    'commerce_product_status' => array(
      'variables' => array(
        'status' => NULL,
        'label' => NULL,
        'product' => NULL,
      ),
      'path' => drupal_get_path('module', 'commerce_product') . '/theme',
      'template' => 'commerce-product-status',
    ),
  );
}