Skip navigation
Help

theme_uc_product_kit_list_item

6 uc_product_kit.module theme_uc_product_kit_list_item($product)
7 uc_product_kit.theme.inc theme_uc_product_kit_list_item($variables)

Renders a product kit component.

Related topics

2 theme calls to theme_uc_product_kit_list_item()

File

ubercart/uc_product_kit/uc_product_kit.theme.inc, line 52
Theme functions for the uc_product_kit module.

Code

function theme_uc_product_kit_list_item($variables) {
  $product = $variables['product'];

  $node = node_load($product->nid);
  if (node_access('view', $node)) {
    $title = l($product->title, 'node/' . $product->nid);
  }
  else {
    $title = check_plain($product->title);
  }

  return theme('uc_qty', array('qty' => $product->qty)) . ' ' . $title;
}