You are here

function theme_uc_product_weight in Ubercart 5

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

Format a product's weight.

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

File

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

Code

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