You are here

function uc_product_feature_delete in Ubercart 6.2

Same name and namespace in other branches
  1. 8.4 uc_product/uc_product.module \uc_product_feature_delete()
  2. 7.3 uc_product/uc_product.module \uc_product_feature_delete()

Deletes a product feature object.

Parameters

$pfid: The product feature ID.

Return value

The product feature object.

1 call to uc_product_feature_delete()
uc_product_features in uc_product/uc_product.admin.inc
Displays the product features tab on a product node edit form.

File

uc_product/uc_product.module, line 2044
The product module for Ubercart.

Code

function uc_product_feature_delete($pfid) {
  $feature = uc_product_feature_load($pfid);

  // Call the delete function for this product feature if it exists.
  $func = uc_product_feature_data($feature['fid'], 'delete');
  if (function_exists($func)) {
    $func($pfid);
  }
  db_query("DELETE FROM {uc_product_features} WHERE pfid = %d", $pfid);
  return SAVED_DELETED;
}