You are here

function uc_product_preprocess_html in Ubercart 7.3

Same name and namespace in other branches
  1. 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

html.tpl.php

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';
    }
  }
}