function basic_cart_theme in Basic cart 8.4
Same name and namespace in other branches
- 8.6 basic_cart.module \basic_cart_theme()
- 8 basic_cart.module \basic_cart_theme()
- 8.0 basic_cart.module \basic_cart_theme()
- 8.2 basic_cart.module \basic_cart_theme()
- 8.3 basic_cart.module \basic_cart_theme()
- 8.5 basic_cart.module \basic_cart_theme()
- 7.3 basic_cart.module \basic_cart_theme()
- 7 basic_cart.module \basic_cart_theme()
- 7.2 basic_cart.module \basic_cart_theme()
Implements hook_theme() for node entities.
File
- ./
basic_cart.module, line 19 - Basic cart module file.
Code
function basic_cart_theme($existing, $type, $theme, $path) {
global $base_url;
return array(
'basic_cart_cart_template' => array(
'variables' => array(
'basic_cart' => NULL,
),
),
'total_price_markup' => array(
'variables' => array(
'price' => NULL,
),
),
'cart_form' => array(
'render element' => 'form',
),
'basic_cart_quantity_prefix' => array(
'variables' => array(
'basic_cart' => NULL,
),
),
'basic_cart_quantity_suffix' => array(
'variables' => array(
'basic_cart' => NULL,
),
),
'basic_cart_thank_you' => array(
'variables' => array(
'basic_cart' => NULL,
),
),
'basic_cart_count_block' => array(
'variables' => array(
'cartcount' => NULL,
'module_url' => $base_url . '/' . drupal_get_path('module', 'basic_cart'),
'size' => "48x39",
'float' => 'right',
'right' => '7px',
'left' => '0',
'top' => '6px',
'bottom' => 0,
'size_class' => '-48-39',
),
),
);
}