From 9fbab016f937ce4c6e2d93e34b046f80c675fae6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 14 Sep 2003 18:33:16 +0000 Subject: - Tidied up the usage of module_invoke() and module_invoke_all(). Patch by Jonathan Chaffer. --- xmlrpc.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'xmlrpc.php') diff --git a/xmlrpc.php b/xmlrpc.php index e1eda8807..41538a98b 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -4,13 +4,7 @@ include_once "includes/xmlrpcs.inc"; include_once "includes/common.inc"; -$functions = array(); - -foreach (module_list() as $name) { - if (module_hook($name, "xmlrpc")) { - $functions = array_merge($functions, module_invoke($name, "xmlrpc")); - } -} +$functions = module_invoke_all("xmlrpc"); $server = new xmlrpc_server($functions); -- cgit v1.2.3