You are here

function commerce_wishlist_permission in Commerce Wishlist 7

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

Implements hook_permission().

File

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

Code

function commerce_wishlist_permission() {
  return array(
    'view own wishlist' => array(
      'title' => t('View own wishlist'),
      'description' => t('Allows a user to see their own wishlist.'),
    ),
    'administer wishlists' => array(
      'title' => t('Administer wishlist'),
      'description' => t('Allows users to perform any action on wishlists. <em>Warning: Give to trusted roles only; this permission has security implications.</em>'),
    ),
  );
}