You are here

function commerce_wishlist_permission in Commerce Wishlist 7.2

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

Implements hook_permission().

File

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

Code

function commerce_wishlist_permission() {
  return array(
    'view active wishlists' => array(
      'title' => t('View active wishlists'),
      'description' => t('Allows a user to see wishlists of other active users.'),
    ),
    'manage own wishlist' => array(
      'title' => t('Manage own wishlist'),
      'description' => t('Allows a user to see and manage 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>'),
    ),
  );
}