summaryrefslogtreecommitdiff
path: root/xmlrpc.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-09-14 18:33:16 +0000
committerDries Buytaert <dries@buytaert.net>2003-09-14 18:33:16 +0000
commit9fbab016f937ce4c6e2d93e34b046f80c675fae6 (patch)
treecfb4de6b4a86ee61c6c783d82df99eedc85b7842 /xmlrpc.php
parentdf3afcbc449773f4768e5dc4b05e7fb2c1197283 (diff)
downloadbrdo-9fbab016f937ce4c6e2d93e34b046f80c675fae6.tar.gz
brdo-9fbab016f937ce4c6e2d93e34b046f80c675fae6.tar.bz2
- Tidied up the usage of module_invoke() and module_invoke_all(). Patch by
Jonathan Chaffer.
Diffstat (limited to 'xmlrpc.php')
-rw-r--r--xmlrpc.php8
1 files changed, 1 insertions, 7 deletions
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);