You are here

function commerce_wishlist_permission in Commerce Wishlist 7.3

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

Implements hook_permission().

File

./commerce_wishlist.module, line 189
Provides a wish list for use in Drupal Commerce.

Code

function commerce_wishlist_permission() {
  return array(
    'view active wish lists' => array(
      'title' => t('View active wish lists'),
      'description' => t('Allows a user to see wish lists of other active users.'),
    ),
    'manage own wish list' => array(
      'title' => t('Manage own wish list'),
      'description' => t('Allows a user to see and manage their own wish list.'),
    ),
    'view any wish list' => array(
      'title' => t('View any wish list'),
      'description' => t('Allows a user to see any wish list.'),
    ),
    'administer wish lists' => array(
      'title' => t('Administer wish list'),
      'description' => t('Allows users to perform any action on wishlists. <em>Warning: Give to trusted roles only; this permission has security implications.</em>'),
    ),
    'configure wish lists' => array(
      'title' => t('Configure wish lists'),
      'description' => t('Change wish list configuration options.'),
    ),
  );
}