You are here

function uc_order_module_invoke in Ubercart 6.2

Same name and namespace in other branches
  1. 7.3 uc_order/uc_order.module \uc_order_module_invoke()

Invokes hook_order() in every module.

We cannot use module_invoke() for this, because the arguments need to be passed by reference.

7 calls to uc_order_module_invoke()
uc_order_delete in uc_order/uc_order.module
Deletes an order and tells other modules to do the same.
uc_order_edit_form_submit in uc_order/uc_order.admin.inc
Form submission handler for uc_order_edit_form().
uc_order_edit_products in uc_order/uc_order.admin.inc
Populates the product add/edit div on the order edit screen.
uc_order_load in uc_order/uc_order.module
Load an order from the database.
uc_order_new in uc_order/uc_order.module
Generate a new order for user $uid.

... See full list

File

uc_order/uc_order.module, line 1479

Code

function uc_order_module_invoke($op, &$order, $edit) {
  foreach (module_list() as $module) {
    $function = $module . '_order';
    if (function_exists($function)) {
      $function($op, $order, $edit);
    }
  }
}