You are here

function basic_cart_theme in Basic cart 7

Same name and namespace in other branches
  1. 8.6 basic_cart.module \basic_cart_theme()
  2. 8 basic_cart.module \basic_cart_theme()
  3. 8.0 basic_cart.module \basic_cart_theme()
  4. 8.2 basic_cart.module \basic_cart_theme()
  5. 8.3 basic_cart.module \basic_cart_theme()
  6. 8.4 basic_cart.module \basic_cart_theme()
  7. 8.5 basic_cart.module \basic_cart_theme()
  8. 7.3 basic_cart.module \basic_cart_theme()
  9. 7.2 basic_cart.module \basic_cart_theme()

Implements hook_theme().

File

./basic_cart.module, line 125
Basic cart module file.

Code

function basic_cart_theme() {
  return array(
    'basic_cart_add_to_cart' => array(
      'function' => 'basic_cart_add_to_cart_button',
      'variables' => array(
        'nid' => NULL,
      ),
    ),
    'basic_cart_cart_flat' => array(
      'template' => 'basic_cart_cart_flat',
      'variables' => array(
        'cart' => NULL,
      ),
    ),
    'basic_cart_cart_render_block' => array(
      'template' => 'basic_cart_cart_render_block',
      'variables' => array(
        'cart' => NULL,
      ),
    ),
    'basic_cart_render_cart_element' => array(
      'render element' => 'form',
    ),
  );
}