function uc_product_preprocess_html in Ubercart 7.3
Same name and namespace in other branches
- 8.4 uc_product/uc_product.module \uc_product_preprocess_html()
Implements hook_preprocess_html().
Adds a body class to product node pages.
See also
File
- uc_product/
uc_product.module, line 835 - The product module for Ubercart.
Code
function uc_product_preprocess_html(&$variables) {
if ($node = menu_get_object()) {
if (uc_product_is_product($node)) {
$variables['classes_array'][] = 'uc-product-node';
}
}
}