function uc_atctweaks_product_load in UC Add to Cart Tweaks 7
Same name and namespace in other branches
- 6 uc_atctweaks.module \uc_atctweaks_product_load()
Load the product feature data for a given node.
1 call to uc_atctweaks_product_load()
- uc_atctweaks_form_alter in ./
uc_atctweaks.module - Implements hook_form_alter().
File
- ./
uc_atctweaks.module, line 273 - Defines a product feature to tweak the add to cart form behavior.
Code
function uc_atctweaks_product_load($nid) {
return db_query('SELECT atc.* FROM {uc_product_features} AS pf
LEFT JOIN {uc_atctweaks_products} AS atc ON pf.pfid = atc.pfid
WHERE pf.fid = :pf_fid AND pf.nid = :pf_nid', array(
':pf_fid' => 'atctweaks',
':pf_nid' => $nid,
))
->fetchObject();
}