You are here

function _uc_file_get_fpid in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 uc_file/uc_file.module \_uc_file_get_fpid()
  2. 6.2 uc_file/uc_file.module \_uc_file_get_fpid()

Gets a file_product id from a product feature id.

1 call to _uc_file_get_fpid()
uc_file_feature_form_submit in uc_file/uc_file.module
Form submission handler for uc_file_feature_form().

File

uc_file/uc_file.module, line 826
Allows products to be associated with downloadable files.

Code

function _uc_file_get_fpid($pfid) {
  return db_query("SELECT fpid FROM {uc_file_products} WHERE pfid = :pfid", array(
    ':pfid' => $pfid,
  ))
    ->fetchField();
}