function theme_commerce_webform_product_display in Commerce Webform 8
Same name and namespace in other branches
- 7.2 productfield.inc \theme_commerce_webform_product_display()
- 7 productfield.inc \theme_commerce_webform_product_display()
Theme of the product selection on the webform.
1 theme call to theme_commerce_webform_product_display()
- _commerce_webform_productfield_expand in ./
productfield.inc - Form API #process function to expand a productfield.
File
- ./
productfield.inc, line 692
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) . ']';
}