You are here

function _uc_varprice_get_vpid in UC Variable Price 7

Gets a uc_varprice id from a product feature id.

1 call to _uc_varprice_get_vpid()
uc_varprice_feature_form_submit in ./uc_varprice.module
Creates the varprice feature in the database.

File

./uc_varprice.module, line 453
Defines a product feature to turn any product into a variable priced product.

Code

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