You are here

function uc_product_preprocess_node in Ubercart 7.3

Same name and namespace in other branches
  1. 6.2 uc_product/uc_product.module \uc_product_preprocess_node()

Implements hook_preprocess_node().

Product classes default to using node--product.tpl.php if they don't have their own template.

See also

theme()

MODULE_preprocess_HOOK()

File

uc_product/uc_product.module, line 822
The product module for Ubercart.

Code

function uc_product_preprocess_node(&$variables) {
  if (uc_product_is_product($variables['type'])) {
    array_unshift($variables['theme_hook_suggestions'], 'node__product');
  }
}