function uc_restrict_qty_node_delete in Ubercart Restrict Qty 7
Same name and namespace in other branches
- 6.2 uc_restrict_qty.module \uc_restrict_qty_node_delete()
Delete all data associated with a given node.
Parameters
obejct $node: A Drupal node object.
File
- ./
uc_restrict_qty.module, line 339 - Restrict the quantity on specified products so that only specified quantity may be purchased at a time.
Code
function uc_restrict_qty_node_delete($node) {
db_delete('uc_restrict_qty_products')
->condition('nid', $node->nid)
->execute();
}