function uc_coupon_permission in Ubercart Discount Coupons 7.3
Same name and namespace in other branches
- 7.2 uc_coupon.module \uc_coupon_permission()
Implements hook_permission().
File
- ./
uc_coupon.module, line 197 - Provides discount codes and gift certificates for Ubercart.
Code
function uc_coupon_permission() {
$perms = array(
'view store coupons' => array(
'title' => t('view store coupons'),
'description' => t('Display information about discount coupons.'),
),
'manage store coupons' => array(
'title' => t('manage store coupons'),
'description' => t('Create, edit and delete discoutn coupons.'),
),
);
if (!module_exists('uc_reports')) {
$perms['view reports'] = array(
'title' => t('view reports'),
'description' => t('Display coupon usage reports.'),
);
}
return $perms;
}