function template_preprocess_commerce_product_sku in Commerce Core 7
Sanitizes the product SKU before output.
File
- modules/
product/ commerce_product.module, line 1095 - 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_sku(&$variables) {
$variables['sku'] = check_plain($variables['sku']);
}