You are here

function commerce_cart_block_info in Commerce Core 7

Implements hook_block_info().

File

modules/cart/commerce_cart.module, line 653
Implements the shopping cart system and add to cart features.

Code

function commerce_cart_block_info() {
  $blocks = array();

  // Define the basic shopping cart block and hide it on the checkout pages.
  $blocks['cart'] = array(
    'info' => t('Shopping cart'),
    'cache' => DRUPAL_NO_CACHE,
    'visibility' => 0,
    'pages' => 'checkout*',
  );
  return $blocks;
}