You are here

function template_preprocess_commerce_product_title in Commerce Core 7

Sanitizes the product title before output.

File

modules/product/commerce_product.module, line 1102
Defines the core Commerce product entity, including the entity itself, the bundle definitions (product types), and various API functions to manage products and interact with them through forms and autocompletes.

Code

function template_preprocess_commerce_product_title(&$variables) {
  $variables['title'] = check_plain($variables['title']);
}