You are here

function uc_product_load in Ubercart 6.2

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

Implements hook_load().

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

File

uc_product/uc_product.module, line 702
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));
}