You are here

function hook_checkout_pane_alter in Ubercart 6.2

Alters checkout pane definitions.

Parameters

$panes: Array with the panes information as defined in hook_checkout_pane(), passed by reference.

1 invocation of hook_checkout_pane_alter()
_checkout_pane_list in uc_cart/uc_cart_checkout_pane.inc
Builds a list of checkout panes defined in the enabled modules.

File

docs/hooks.php, line 426
These are the hooks that are invoked by the Ubercart core.

Code

function hook_checkout_pane_alter(&$panes) {
  foreach ($panes as &$pane) {
    if ($pane['id'] == 'cart') {
      $pane['callback'] = 'my_custom_module_callback';
    }
  }
}