function commerce_wishlist_theme in Commerce Wishlist 7.3
Same name and namespace in other branches
- 8.3 commerce_wishlist.module \commerce_wishlist_theme()
- 7.2 commerce_wishlist.module \commerce_wishlist_theme()
Implements hook_theme().
File
- ./
commerce_wishlist.module, line 230 - Provides a wish list for use in Drupal Commerce.
Code
function commerce_wishlist_theme($existing, $type, $theme, $path) {
// Themable elements.
return array(
'commerce_wishlist_product_add_link' => array(
'variables' => array(
'product_id' => NULL,
'user' => NULL,
),
),
'commerce_wishlist_already_in_wishlist_link' => array(
'variables' => array(
'user_id' => NULL,
),
),
'commerce_wishlist_added_to_wishlist_link' => array(
'variables' => array(
'user_id' => NULL,
'product' => NULL,
),
),
'commerce_wishlist_user_wishlist_page_title' => array(
'variables' => array(
'account' => NULL,
),
),
'commerce_wishlist_share_wishlist' => array(
'template' => 'commerce-wishlist-share-wishlist',
'path' => drupal_get_path('module', 'commerce_wishlist') . '/templates',
'variables' => array(
'account' => NULL,
),
),
'commerce_wishlist_empty_page' => array(
'template' => 'commerce-wishlist-empty-page',
'path' => drupal_get_path('module', 'commerce_wishlist') . '/templates',
'variables' => array(
'account' => NULL,
),
),
);
}