You are here

function uc_coupon_purchase_menu in Ubercart Discount Coupons 5

Same name and namespace in other branches
  1. 6 uc_coupon_purchase/uc_coupon_purchase.module \uc_coupon_purchase_menu()
  2. 7.3 uc_coupon_purchase/uc_coupon_purchase.module \uc_coupon_purchase_menu()
  3. 7.2 uc_coupon_purchase/uc_coupon_purchase.module \uc_coupon_purchase_menu()

Implementation of hook_menu().

File

uc_coupon_purchase/uc_coupon_purchase.module, line 6

Code

function uc_coupon_purchase_menu($may_cache) {
  $items = array();
  if (!$may_cache) {
    if (module_exists('uc_notify')) {
      $items[] = array(
        'path' => 'admin/store/settings/notify/edit/coupon',
        'title' => t('Coupon creation'),
        'access' => user_access('administer store'),
        'callback' => 'drupal_get_form',
        'callback arguments' => array(
          'uc_coupon_purchase_notify_settings',
        ),
        'description' => t('Edit the notification settings for coupon purchases.'),
        'type' => MENU_LOCAL_TASK,
      );
    }
  }
  return $items;
}