You are here

function commerce_wishlist_theme in Commerce Wishlist 7.2

Same name and namespace in other branches
  1. 8.3 commerce_wishlist.module \commerce_wishlist_theme()
  2. 7.3 commerce_wishlist.module \commerce_wishlist_theme()

Implements hook_theme().

File

./commerce_wishlist.module, line 60
Provides the wishlist for use in Drupal Commerce.

Code

function commerce_wishlist_theme($existing, $type, $theme, $path) {

  // Themable elements.
  return array(
    'commerce_wishlist_already_in_wishlist_link' => array(
      'variables' => array(
        'user_id' => 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,
      ),
    ),
  );
}