You are here

function theme_uc_product_weight in Ubercart 6.2

Same name and namespace in other branches
  1. 5 uc_product/uc_product.module \theme_uc_product_weight()
  2. 7.3 uc_product/uc_product.theme.inc \theme_uc_product_weight()

Formats a product's weight.

2 theme calls to theme_uc_product_weight()
uc_product_kit_view in uc_product_kit/uc_product_kit.module
Implements hook_view().
uc_product_view in uc_product/uc_product.module
Implements hook_view().

File

uc_product/uc_product.module, line 1548
The product module for Ubercart.

Code

function theme_uc_product_weight($weight, $unit = NULL, $teaser = 0, $page = 0) {
  $output = '<div class="product-info weight">';
  $output .= t('Weight: !weight', array(
    '!weight' => uc_weight_format($weight, $unit),
  ));
  $output .= '</div>';
  return $output;
}