You are here

function commerce_checkout_pane_reset in Commerce Core 7

Resets a checkout pane by pane_id to its module defined defaults.

1 call to commerce_checkout_pane_reset()
commerce_checkout_pane_settings_form_reset_submit in modules/checkout/includes/commerce_checkout.admin.inc
Submit handler for the checkout pane settings form's reset button.

File

modules/checkout/commerce_checkout.module, line 685
Enable checkout as a multi-step form with customizable pages and a simple checkout pane API.

Code

function commerce_checkout_pane_reset($pane_id) {
  db_delete('commerce_checkout_pane')
    ->condition('pane_id', $pane_id)
    ->execute();
}