function uc_recurring_product_order in UC Recurring Payments and Subscriptions 6.2
Implementation of hook_order().
File
- modules/
uc_recurring_product/ uc_recurring_product.module, line 315 - Add recurring payments/fees to a product. This is imlpemented through Ubercarts product features.
Code
function uc_recurring_product_order($op, $arg1, $arg2) {
switch ($op) {
// TODO: Allow admin to create a recurring order from "create order" page.
case 'submit':
if (variable_get('uc_recurring_checkout_process', TRUE)) {
if (uc_recurring_product_process_order($arg1) === FALSE) {
return array(
array(
'pass' => FALSE,
'message' => t('Your order cannot be completed, because we could not process your recurring payment. Please review your payment details and contact us to complete your order if the problem persists.'),
),
);
}
}
break;
}
}