function theme_uc_product_dimensions in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_product/uc_product.module \theme_uc_product_dimensions()
- 7.3 uc_product/uc_product.theme.inc \theme_uc_product_dimensions()
Format a product's length, width, and height.
1 theme call to theme_uc_product_dimensions()
- uc_product_view in uc_product/
uc_product.module - Implementation of hook_view().
File
- uc_product/
uc_product.module, line 2443 - The product module for Ubercart.
Code
function theme_uc_product_dimensions($length, $width, $height, $units = null, $teaser = 0, $page = 0) {
$output = '<div class="dimensions">';
$output .= t('Dimensions: !length × !width × !height', array(
'!length' => uc_length_format($length, $units),
'!width' => uc_length_format($width, $units),
'!height' => uc_length_format($height, $units),
));
$output .= '</div>';
return $output;
}