function theme_commerce_webform_product_display in Commerce Webform 7
Same name and namespace in other branches
- 8 productfield.inc \theme_commerce_webform_product_display()
- 7.2 productfield.inc \theme_commerce_webform_product_display()
Theme of the product selection on the webform.
1 theme call to theme_commerce_webform_product_display()
- _webform_render_productfield in ./
productfield.inc - Implements _webform_render_component().
File
- ./
productfield.inc, line 686
Code
function theme_commerce_webform_product_display($variables) {
$product = $variables['product'];
$price = $variables['price'];
return filter_xss($product->title) . ' [' . commerce_currency_format($price['amount'], $price['currency_code'], $product) . ']';
}