function commerce_cart_commerce_line_item_summary_link_info in Commerce Core 7
Implements hook_commerce_line_item_summary_link_info().
File
- modules/
cart/ commerce_cart.module, line 223 - Implements the shopping cart system and add to cart features.
Code
function commerce_cart_commerce_line_item_summary_link_info() {
return array(
'view_cart' => array(
'title' => t('View cart'),
'href' => 'cart',
'attributes' => array(
'rel' => 'nofollow',
),
'weight' => 0,
),
'checkout' => array(
'title' => t('Checkout'),
'href' => 'checkout',
'attributes' => array(
'rel' => 'nofollow',
),
'weight' => 5,
'access' => user_access('access checkout'),
),
);
}