You are here

function uc_attribute_load_product_attributes in Ubercart 8.4

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

Fetches an array of attribute objects that belong to a product.

Parameters

int $nid: Product node id whose attributes to load.

Return value

object[] The array of attribute objects.

File

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

Code

function uc_attribute_load_product_attributes($nid) {
  return uc_attribute_load_multiple([], 'product', $nid);
}