You are here

function uc_product_load in Ubercart 5

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

Implementation of hook_load().

1 call to uc_product_load()
uc_product_kit_load in uc_product_kit/uc_product_kit.module
Implementation of hook_load().

File

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

Code

function uc_product_load(&$node) {
  return db_fetch_object(db_query('SELECT model, list_price, cost, sell_price, weight, weight_units, length, width, height, length_units, pkg_qty, default_qty, unique_hash, ordering, shippable FROM {uc_products} WHERE vid = %d', $node->vid));
}