function dc_ajax_add_cart_theme in Commerce Ajax Add to Cart 7.2
Same name and namespace in other branches
- 7 dc_ajax_add_cart.module \dc_ajax_add_cart_theme()
Implements hook_theme().
File
- ./
dc_ajax_add_cart.module, line 408 - Ajax add to cart module.
Code
function dc_ajax_add_cart_theme() {
return array(
'dc_ajax_shopping_cart' => array(
'variables' => array(
'order' => NULL,
'line_items' => NULL,
'quantity' => NULL,
'total' => NULL,
),
'template' => 'templates/dc-ajax-shopping-cart',
),
'dc_ajax_shopping_cart_teaser' => array(
'variables' => array(
'order' => NULL,
'quantity' => NULL,
'total' => NULL,
),
'template' => 'templates/dc-ajax-shopping-cart-teaser',
),
'dc_ajax_add_to_cart_message' => array(
'variables' => array(
'line_item' => NULL,
'product' => NULL,
'quantity' => NULL,
),
'template' => 'templates/dc-ajax-add-to-cart-message',
),
);
}