You are here

function uc_attribute_node_reset in Ubercart 6.2

Reset attributes to class defaults for a product node.

3 calls to uc_attribute_node_reset()
uc_attribute_bulk_update_flush in uc_attribute/uc_attribute.admin.inc
Form submission handler for uc_attribute_bulk_update_form().
uc_attribute_bulk_update_flush_all in uc_attribute/uc_attribute.admin.inc
Form submission handler for uc_attribute_bulk_update_form().
uc_attribute_node_reset_confirm_submit in uc_attribute/uc_attribute.admin.inc
Execute product attribute reset.

File

uc_attribute/uc_attribute.module, line 431

Code

function uc_attribute_node_reset($node) {
  uc_attribute_node_delete($node);
  uc_attribute_node_insert($node);
}