You are here

function uc_attribute_bulk_update_flush in Ubercart 6.2

Form submission handler for uc_attribute_bulk_update_form().

See also

uc_attribute_bulk_update_form()

1 string reference to 'uc_attribute_bulk_update_flush'
uc_attribute_bulk_update_form in uc_attribute/uc_attribute.admin.inc
Form builder for bulk product updates.

File

uc_attribute/uc_attribute.admin.inc, line 284
Attribute administration menu items.

Code

function uc_attribute_bulk_update_flush($form, &$form_state) {
  $nodes = array_filter($form_state['values']['nodes']);
  foreach ($nodes as $nid) {
    $node = node_load($nid);
    uc_attribute_node_reset($node);
  }
  drupal_set_message(t("Bulk update completed successfully on selected products."));
}