You are here

function uc_addresses_uc_order_pane_alter in Ubercart Addresses 7

Implements hook_uc_order_pane_alter().

Alters the callback functions of the ship_to and bill_to panes.

Return value

void

File

./uc_addresses.module, line 1117
Adds user profile address support to Ubercart.

Code

function uc_addresses_uc_order_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 'ship_to':
        $panes[$key]['callback'] = 'uc_addresses_order_pane_ship_to';
        break;
      case 'bill_to':
        $panes[$key]['callback'] = 'uc_addresses_order_pane_bill_to';
        break;
    }
  }
}