You are here

function commerce_checkout_crumbs_plugins in Crumbs, the Breadcrumbs suite 7.2

Implementation of hook_crumbs_plugins()

Parameters

crumbs_InjectedAPI_hookCrumbsPlugins $api:

File

plugins/crumbs.commerce_checkout.inc, line 8

Code

function commerce_checkout_crumbs_plugins($api) {

  // The parent path and title for checkout/%/% will be determined by the
  // commerce_checkout_CrumbsMonoPlugin_checkoutPages plugin.
  $api
    ->routeMonoPlugin('checkout/%/%', 'checkoutPages');

  // The parent path for 'checkout/%' should always be 'cart'.
  $api
    ->routeParentPath('checkout/%', 'cartToCheckout', 'cart');

  // This plugin needs to be explicitly enabled.
  $api
    ->disabledByDefault('*');
}