function uc_cart_filter_checkout_panes in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_cart/uc_cart.module \uc_cart_filter_checkout_panes()
- 7.3 uc_cart/uc_cart.module \uc_cart_filter_checkout_panes()
2 calls to uc_cart_filter_checkout_panes()
- uc_cart_checkout_form in uc_cart/
uc_cart.module - uc_cart_checkout_review in uc_cart/
uc_cart.module - Allow a customer to review their order before finally submitting it.
File
- uc_cart/
uc_cart.module, line 2127
Code
function uc_cart_filter_checkout_panes($panes, $remove = NULL) {
if (is_array($remove)) {
for ($i = 0, $j = count($panes); $i < $j; $i++) {
foreach ($remove as $key => $value) {
if ($panes[$i][$key] == $value) {
unset($panes[$i]);
}
}
}
}
return $panes;
}