You are here

function uc_file_feature_delete in Ubercart 6.2

Same name and namespace in other branches
  1. 8.4 uc_file/uc_file.module \uc_file_feature_delete()
  2. 5 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_product_feature in uc_file/uc_file.module
Implements hook_product_feature().

File

uc_file/uc_file.module, line 700

Code

function uc_file_feature_delete($pfid) {
  db_query("DELETE FROM {uc_file_products} WHERE pfid = %d", $pfid);
}