function commerce_coupon_permission in Commerce Coupon 7
Same name and namespace in other branches
- 7.2 commerce_coupon.module \commerce_coupon_permission()
Implements hook_permission().
Provides the basic access objects
File
- ./
commerce_coupon.module, line 146 - Coupon System for Drupal Commerce.
Code
function commerce_coupon_permission() {
$permissions = array(
'administer coupon settings' => array(
'title' => t('Administer Coupon Settings'),
'description' => t('Allows users to manage coupon settings.'),
),
'administer coupon types' => array(
'title' => t('Administer Coupon Types'),
'description' => t('Allows users to manage coupon types.'),
),
);
$permissions += commerce_entity_access_permissions('commerce_coupon');
return $permissions;
}