function commerce_views_display_theme in Commerce Views Display 7
Implement hook_theme().
File
- ./
commerce_views_display.module, line 20 - Provides a views display plugin to render an add to cart form
Code
function commerce_views_display_theme($existing, $type, $theme, $path) {
return array(
'commerce_views_display_add_to_cart_form' => array(
'variables' => array(
'form' => array(),
'product_display_id' => NULL,
'view' => NULL,
'settings' => array(),
),
'file' => 'theme/commerce_views_display.theme.inc',
'pattern' => 'commerce_views_display_add_to_cart_form__',
),
'commerce_views_display_fields' => array(
'variables' => array(
'field_elements' => array(),
'product_display_id' => NULL,
'view' => NULL,
'settings' => array(),
),
'file' => 'theme/commerce_views_display.theme.inc',
'pattern' => 'commerce_views_display_fields__',
),
);
}