You are here

function uc_attribute_node_load in Ubercart 8.4

Same name and namespace in other branches
  1. 7.3 uc_attribute/uc_attribute.module \uc_attribute_node_load()

Implements hook_node_load().

File

uc_attribute/uc_attribute.module, line 195
Ubercart Attribute module.

Code

function uc_attribute_node_load($nodes) {
  foreach ($nodes as $node) {
    if (uc_product_is_product($node)) {
      $node->attributes = uc_product_get_attributes($node
        ->id());
    }
  }
}