function commerce_checkout_builder_form_reset_submit in Commerce Core 7
Submit handler for the checkout builder form's reset button.
1 string reference to 'commerce_checkout_builder_form_reset_submit'
- commerce_checkout_builder_form in modules/
checkout/ includes/ commerce_checkout.admin.inc - Build the checkout form builder, adding in data for the checkout pages and the appropriate fields to enable tabledrag on the checkout panes.
File
- modules/
checkout/ includes/ commerce_checkout.admin.inc, line 156 - Administrative callbacks for the Checkout module.
Code
function commerce_checkout_builder_form_reset_submit($form, &$form_state) {
// Empty the checkout pane table of configuration data.
db_truncate('commerce_checkout_pane')
->execute();
drupal_set_message(t('Checkout pane positions reset.'));
}