You are here

function commerce_addressbook_commerce_checkout_pane_info_alter in Commerce Addressbook 7.3

Implements hook_commerce_checkout_pane_info_alter().

Changes all customer profile panes to use the addressbook pane code instead.

File

./commerce_addressbook.module, line 183
Defines addressbook functionality for customer profiles, allowing them to be reused and managed on a per-user basis.

Code

function commerce_addressbook_commerce_checkout_pane_info_alter(&$checkout_panes) {
  foreach (commerce_customer_profile_types() as $type => $profile_type) {
    $checkout_panes['customer_profile_' . $type]['module'] = 'commerce_addressbook';
    $checkout_panes['customer_profile_' . $type]['file'] = 'commerce_addressbook.checkout_pane.inc';
    $checkout_panes['customer_profile_' . $type]['base'] = 'commerce_addressbook_pane';
  }
  return $checkout_panes;
}