function _uc_file_get_fpid in Ubercart 8.4
Same name and namespace in other branches
- 6.2 uc_file/uc_file.module \_uc_file_get_fpid()
- 7.3 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()
- FileFeatureForm::submitForm in uc_file/
src/ Form/ FileFeatureForm.php - Form submission handler.
File
- uc_file/
uc_file.module, line 242 - Allows products to be associated with downloadable files.
Code
function _uc_file_get_fpid($pfid) {
$connection = \Drupal::database();
return $connection
->query("SELECT fpid FROM {uc_file_products} WHERE pfid = :pfid", [
':pfid' => $pfid,
])
->fetchField();
}