function commerce_add_to_cart_confirmation_theme in Commerce add to cart confirmation 1.x
Same name and namespace in other branches
- 7 commerce_add_to_cart_confirmation.module \commerce_add_to_cart_confirmation_theme()
Implements hook_theme().
File
- ./
commerce_add_to_cart_confirmation.module, line 11 - Commerce add to cart confirmation module.
Code
function commerce_add_to_cart_confirmation_theme() {
return [
'commerce_add_to_cart_confirmation' => [
'template' => 'commerce_add_to_cart_confirmation',
'path' => drupal_get_path('module', 'commerce_add_to_cart_confirmation') . '/templates',
'variables' => [
'title' => NULL,
'message' => NULL,
'order_item' => NULL,
],
],
];
}