Index: uc_order.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/ubercart/uc_order/uc_order.module,v retrieving revision 1.12.2.33 diff -u -p -r1.12.2.33 uc_order.module --- uc_order.module 29 Oct 2009 20:35:58 -0000 1.12.2.33 +++ uc_order.module 5 Nov 2009 20:18:38 -0000 @@ -1289,15 +1289,10 @@ function uc_order_update_status($order_i // Attempt the update if the order exists. if ($order !== FALSE) { // Return false if any module says the update is not good to go. - foreach (module_list() as $module) { - $function = $module .'_order'; - // $order must be passed by reference. - if (function_exists($function) && ($return = $function('can_update', $order, $status))){ - for ($i = 0; $i < count($return); $i++) { - if ($return[$i] === FALSE) { - return FALSE; - } - } + $return = module_invoke_all('order', 'can_update', $order, $status); + for ($i = 0; $i < count($return); $i++) { + if ($return[$i] === FALSE) { + return FALSE; } }