function uc_order_module_invoke in Ubercart 7.3
Same name and namespace in other branches
- 6.2 uc_order/uc_order.module \uc_order_module_invoke()
Invokes hook_uc_order() in every module.
We cannot use module_invoke() for this, because the arguments need to be passed by reference.
6 calls to uc_order_module_invoke()
- UcOrderController::attachLoad in uc_order/
uc_order.controller.inc - Attaches data to entities upon loading.
- uc_order_create in uc_order/
uc_order.module - Entity API "creation callback" for uc_order entity.
- uc_order_delete in uc_order/
uc_order.module - Entity API "deletion callback" for uc_order entity.
- uc_order_new in uc_order/
uc_order.module - Generates and saves a new order.
- uc_order_save in uc_order/
uc_order.module - Entity API "save callback" for uc_order entity.
File
- uc_order/
uc_order.module, line 1631
Code
function uc_order_module_invoke($op, &$order, $edit) {
foreach (module_implements('uc_order') as $module) {
$function = $module . '_uc_order';
if (function_exists($function)) {
$function($op, $order, $edit);
}
}
}