function uc_recurring_invoke in UC Recurring Payments and Subscriptions 6.2
Same name and namespace in other branches
- 7.2 uc_recurring.module \uc_recurring_invoke()
Invoke an item type specific function, which will be item types base appended with _$op. The parameters given in $params will be passed to this function.
Parameters
$handler: The handler from the fee object.
$op: The operation that should be invoked.
$params: The paramaters that should be passed to the handler.
5 calls to uc_recurring_invoke()
- uc_recurring_charge_profile in ./
uc_recurring.module - Process a charge on a recurring profile.
- uc_recurring_fee_cancel in ./
uc_recurring.module - Wrapper function to cancel a user's recurring fee.
- uc_recurring_order_process_order in modules/
uc_recurring_order/ uc_recurring_order.module - Process a recurring order.
- uc_recurring_product_process_order in modules/
uc_recurring_product/ uc_recurring_product.module - Passes the information onto the specified fee handler for processing.
- uc_recurring_uc_credit in includes/
uc_recurring.uc_credit.inc - Credit card process and renew.
File
- ./
uc_recurring.module, line 758 - Allows you to add a recurring fee to a product/SKU to handle subscription type services.
Code
function uc_recurring_invoke($handler, $op, $params = array()) {
$info = uc_recurring_get_recurring_info($handler);
// Check if there's a custom function for this $op.
if (!empty($info[$op]) && function_exists($info[$op])) {
// Add the op argument to the params, in case the handler will need to use
// it to identify the operation it is in.
$params[] = $op;
return call_user_func_array($info[$op], $params);
}
}