function commerce_checkout_pane_save in Commerce Core 7
Saves a checkout pane's configuration to the database.
Parameters
$checkout_pane: The fully loaded checkout pane object.
Return value
The return value of the call to drupal_write_record() to save the checkout pane, either FALSE on failure or SAVED_NEW or SAVED_UPDATED indicating the type of query performed to save the checkout pane.
3 calls to commerce_checkout_pane_save()
- commerce_checkout_builder_form_save_submit in modules/
checkout/ includes/ commerce_checkout.admin.inc - Submit handler for the checkout builder form's save button.
- commerce_checkout_pane_settings_form_save_submit in modules/
checkout/ includes/ commerce_checkout.admin.inc - Submit handler for the checkout pane settings form's save button.
- commerce_customer_field_delete_instance in modules/
customer/ commerce_customer.module - Implements hook_field_delete_instance().
File
- modules/
checkout/ commerce_checkout.module, line 647 - Enable checkout as a multi-step form with customizable pages and a simple checkout pane API.
Code
function commerce_checkout_pane_save($checkout_pane) {
return drupal_write_record('commerce_checkout_pane', $checkout_pane, !empty($checkout_pane['saved']) ? 'pane_id' : array());
}