You are here

function commerce_cart_preprocess_views_view in Commerce Core 7

Same name and namespace in other branches
  1. 8.2 modules/cart/commerce_cart.module \commerce_cart_preprocess_views_view()

Implements hook_preprocess_views_view().

File

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

Code

function commerce_cart_preprocess_views_view(&$vars) {
  $view = $vars['view'];

  // Add the shopping cart stylesheet to the cart or form if they are not empty.
  if ($view->name == 'commerce_cart_block' || $view->name == 'commerce_cart_form') {
    drupal_add_css(drupal_get_path('module', 'commerce_cart') . '/theme/commerce_cart.theme.css');
  }
}