function uc_coupon_condition_order_has_coupon_form in Ubercart Discount Coupons 6
File
- ./
uc_coupon.ca.inc, line 75
Code
function uc_coupon_condition_order_has_coupon_form($form_state, $settings = array()) {
$form['codes'] = array(
'#type' => 'textarea',
'#title' => t('Coupon codes'),
'#description' => t('Enter coupon codes that this condition will apply to, one per line. Wildcards are allowed, e.g. COUPON* will match all codes beginning with COUPON. Leave blank to apply to any order with a coupon.'),
'#default_value' => $settings['codes'],
);
$form['check_current'] = array(
'#type' => 'checkbox',
'#title' => t('Include currently applied coupon (if any).'),
'#description' => t('Check this box if this condition will apply only to orders that
are currently in checkout, in order to catch coupons applied before an order reaches
the review stage (e.g. for shipping quotes). Leave unchecked if the condition will
apply to orders after checkout is complete (e.g. when payment notification is received
or when order status is updated manually).'),
'#default_value' => $settings['check_current'],
);
return $form;
}