You are here

function uc_product_feature_load_multiple in Ubercart 6.2

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

Loads all product feature for a node.

Parameters

$nid: The product node ID.

Return value

The array of all product features object.

1 call to uc_product_feature_load_multiple()
uc_product_features in uc_product/uc_product.admin.inc
Displays the product features tab on a product node edit form.

File

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

Code

function uc_product_feature_load_multiple($nid) {
  $result = db_query("SELECT * FROM {uc_product_features} WHERE nid = %d ORDER BY pfid ASC", $nid);
  $features = array();
  while ($feature = db_fetch_object($result)) {
    $features[$feature->pfid] = $feature;
  }
  return $features;
}