You are here

function uc_file_feature_delete in Ubercart 8.4

Same name and namespace in other branches
  1. 5 uc_file/uc_file.module \uc_file_feature_delete()
  2. 6.2 uc_file/uc_file.module \uc_file_feature_delete()
  3. 7.3 uc_file/uc_file.module \uc_file_feature_delete()

Deletes all file data associated with a given product feature.

Parameters

$pfid: An Ubercart product feature ID.

1 string reference to 'uc_file_feature_delete'
uc_file_uc_product_feature in uc_file/uc_file.module
Implements hook_uc_product_feature().

File

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

Code

function uc_file_feature_delete($pfid) {
  $connection = \Drupal::database();
  $connection
    ->delete('uc_file_products')
    ->condition('pfid', $pfid)
    ->execute();
}