You are here

function _uc_atctweaks_get_vpid in UC Add to Cart Tweaks 7

Gets a uc_atctweaks id from a product feature id.

1 call to _uc_atctweaks_get_vpid()
uc_atctweaks_feature_form_submit in ./uc_atctweaks.module

File

./uc_atctweaks.module, line 283
Defines a product feature to tweak the add to cart form behavior.

Code

function _uc_atctweaks_get_vpid($pfid) {
  return db_query('SELECT vpid FROM {uc_atctweaks_products} WHERE pfid = :pfid', array(
    ':pfid' => $pfid,
  ))
    ->fetchField();
}