function uc_addresses_uc_checkout_pane_alter in Ubercart Addresses 7
Implements hook_uc_checkout_pane_alter().
Alters the callback functions of the delivery and billing panes.
Return value
void
File
- ./
uc_addresses.module, line 1093 - Adds user profile address support to Ubercart.
Code
function uc_addresses_uc_checkout_pane_alter(&$panes) {
// Load file with the callback functions.
module_load_include('ubercart.inc', 'uc_addresses');
foreach ($panes as $key => $pane) {
switch ($pane['id']) {
case 'billing':
$panes[$key]['callback'] = 'uc_addresses_checkout_pane_billing';
break;
case 'delivery':
$panes[$key]['callback'] = 'uc_addresses_checkout_pane_shipping';
break;
}
}
}