function hook_cart_pane_alter in Ubercart 6.2
Alters cart pane definitions.
Parameters
$panes: The array of pane information in the format defined in hook_cart_pane(), passed by reference.
$items: The array of item information.
1 invocation of hook_cart_pane_alter()
- uc_cart_cart_pane_list in uc_cart/
uc_cart.module - Gets all of the enabled, sorted cart panes.
File
- docs/
hooks.php, line 349 - These are the hooks that are invoked by the Ubercart core.
Code
function hook_cart_pane_alter(&$panes, $items) {
foreach ($panes as &$pane) {
if ($pane['id'] == 'cart') {
$pane['body'] = drupal_get_form('my_custom_pane_form_builder', $items);
}
}
}