You are here

function uc_product_preprocess_node in Ubercart 6.2

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

Implements hook_preprocess_node().

Default product classes to use 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 843
The product module for Ubercart.

Code

function uc_product_preprocess_node(&$variables) {
  if (uc_product_is_product($variables['type'])) {
    array_unshift($variables['template_files'], 'node-product');
  }
}