You are here

function uc_coupon_workflow_apply_modes in Ubercart Discount Coupons 7.3

Same name and namespace in other branches
  1. 7.2 uc_coupon_workflow/uc_coupon_workflow.rules.inc \uc_coupon_workflow_apply_modes()
1 string reference to 'uc_coupon_workflow_apply_modes'
uc_coupon_workflow_rules_action_info in uc_coupon_workflow/uc_coupon_workflow.rules.inc
Implements hook_rules_action_info().

File

uc_coupon_workflow/uc_coupon_workflow.rules.inc, line 317
Rules integration for uc_coupon_workflow

Code

function uc_coupon_workflow_apply_modes() {
  return array(
    'retain' => t('Apply this coupon normally. It will added to the session for the current customer, and when its
                   restrictions are satisfied, it will be applied exactly as if the code had been submitted manually.'),
    'auto' => t('Apply this coupon as an automatic discount.') . ' <strong>' . t('Only select this option if this rule
                 reacts to the "%event" event.', array(
      '%event' => t('Check for automatic discounts'),
    )) . '</strong>. ' . t('Then, this rule will be evaluated whenever the cart contents are updated, and the coupon applied
                 only if all conditions and restrictions are satisfied.'),
  );
}