You are here

function uc_restrict_qty_feature_delete in Ubercart Restrict Qty 7

Same name and namespace in other branches
  1. 6.2 uc_restrict_qty.module \uc_restrict_qty_feature_delete()

Delete all data associated with a given product feature.

Parameters

$pfid: An Ubercart product feature array.

1 string reference to 'uc_restrict_qty_feature_delete'
uc_restrict_qty_uc_product_feature in ./uc_restrict_qty.module
Implements hook_uc_product_feature().

File

./uc_restrict_qty.module, line 351
Restrict the quantity on specified products so that only specified quantity may be purchased at a time.

Code

function uc_restrict_qty_feature_delete($feature) {
  db_delete('uc_restrict_qty_products')
    ->condition('pfid', $feature['pfid'])
    ->execute();
}