You are here

function commerce_line_item_theme in Commerce Core 7

Implements hook_theme().

File

modules/line_item/commerce_line_item.module, line 203
Defines the core Commerce line item entity and API functions interact with line items on orders.

Code

function commerce_line_item_theme() {
  return array(
    'commerce_line_item_manager' => array(
      'render element' => 'form',
    ),
    'commerce_line_item_summary' => array(
      'variables' => array(
        'quantity_raw' => NULL,
        'quantity_label' => NULL,
        'quantity' => NULL,
        'total_raw' => NULL,
        'total_label' => NULL,
        'total' => NULL,
        'links' => NULL,
        'view' => NULL,
      ),
      'path' => drupal_get_path('module', 'commerce_line_item') . '/theme',
      'template' => 'commerce-line-item-summary',
    ),
  );
}