function commerce_checkout_pane_load in Commerce Core 7
Loads the data for a specific checkout pane.
Parameters
$pane_id: The machine readable ID of the checkout pane.
Return value
The requested checkout pane array or FALSE if not found.
3 calls to commerce_checkout_pane_load()
- 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 660 - Enable checkout as a multi-step form with customizable pages and a simple checkout pane API.
Code
function commerce_checkout_pane_load($pane_id) {
// Loads the entire list of panes.
$checkout_panes = commerce_checkout_panes();
// Return FALSE if the pane does not exist.
if (empty($checkout_panes[$pane_id])) {
return FALSE;
}
return $checkout_panes[$pane_id];
}