function uc_product_feature_load in Ubercart 7.3
Same name and namespace in other branches
- 8.4 uc_product/uc_product.module \uc_product_feature_load()
- 6.2 uc_product/uc_product.module \uc_product_feature_load()
Loads a product feature object.
@todo: should return an object instead of array.
Parameters
$pfid: The product feature ID.
$fid: Optional. Specify a specific feature id.
Return value
The product feature array.
2 calls to uc_product_feature_load()
- uc_product_feature_delete in uc_product/
uc_product.module - Deletes a product feature object.
- uc_product_feature_edit in uc_product/
uc_product.admin.inc - Handles adding or editing product features.
File
- uc_product/
uc_product.module, line 1662 - The product module for Ubercart.
Code
function uc_product_feature_load($pfid) {
$feature = db_query("SELECT * FROM {uc_product_features} WHERE pfid = :pfid", array(
':pfid' => $pfid,
))
->fetchAssoc();
return $feature;
}