function _uc_cart_checkout_next_pane in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_cart/uc_cart_checkout_pane.inc \_uc_cart_checkout_next_pane()
- 6.2 uc_cart/uc_cart_checkout_pane.inc \_uc_cart_checkout_next_pane()
Finds the pane that displays below the pane with an ID of $pane_id.
1 call to _uc_cart_checkout_next_pane()
- uc_cart_checkout_form in uc_cart/
uc_cart.pages.inc - The checkout form built up from the enabled checkout panes.
File
- uc_cart/
uc_cart_checkout_pane.inc, line 392 - Callbacks for the default Ubercart checkout panes plus helper functions.
Code
function _uc_cart_checkout_next_pane($panes, $pane_id = NULL) {
if (is_null($pane_id)) {
return FALSE;
}
$next = FALSE;
foreach ($panes as $target) {
if ($next) {
if ($target['collapsible'] && $target['enabled']) {
return $target['id'];
}
}
if ($target['id'] == $pane_id) {
$next = TRUE;
}
}
return FALSE;
}