function uc_coupon_uc_store_status in Ubercart Discount Coupons 7.3
Same name and namespace in other branches
- 7.2 uc_coupon.module \uc_coupon_uc_store_status()
Implements hook_uc_store_status().
File
- ./
uc_coupon.module, line 1798 - Provides discount codes and gift certificates for Ubercart.
Code
function uc_coupon_uc_store_status() {
$statuses = array();
if (variable_get('uc_payment_method_paypal_wps_checkout', 0) && variable_get('uc_paypal_wps_submit_method', 'single') == 'itemized') {
$statuses[] = array(
'status' => 'warning',
'title' => t('Coupons'),
'desc' => t('To use coupons with PayPal you must select "Submit the whole order as a single line item". <a href="!url">Click here to change this setting</a>.', array(
'!url' => url('admin/store/settings/payment/edit/methods'),
)),
);
}
return $statuses;
}