function uc_attribute_node_delete in Ubercart 6.2
Same name and namespace in other branches
- 8.4 uc_attribute/uc_attribute.module \uc_attribute_node_delete()
- 7.3 uc_attribute/uc_attribute.module \uc_attribute_node_delete()
Remove all attributes from a product node.
2 calls to uc_attribute_node_delete()
- uc_attribute_nodeapi in uc_attribute/
uc_attribute.module - Implements hook_nodeapi().
- uc_attribute_node_reset in uc_attribute/
uc_attribute.module - Reset attributes to class defaults for a product node.
File
- uc_attribute/
uc_attribute.module, line 422
Code
function uc_attribute_node_delete($node) {
db_query("DELETE FROM {uc_product_options} WHERE nid = %d", $node->nid);
db_query("DELETE FROM {uc_product_adjustments} WHERE nid = %d", $node->nid);
db_query("DELETE FROM {uc_product_attributes} WHERE nid = %d", $node->nid);
}