You are here

function theme_uc_product_dimensions in Ubercart 6.2

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

Formats a product's length, width, and height.

1 theme call to theme_uc_product_dimensions()
uc_product_view in uc_product/uc_product.module
Implements hook_view().

File

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

Code

function theme_uc_product_dimensions($length, $width, $height, $units = NULL, $teaser = 0, $page = 0) {
  $output = '<div class="product-info 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;
}