summaryrefslogtreecommitdiffstats
path: root/xmlrpc.php
diff options
context:
space:
mode:
authorDries Buytaert2003-09-14 18:33:16 (GMT)
committerDries Buytaert2003-09-14 18:33:16 (GMT)
commit9fbab016f937ce4c6e2d93e34b046f80c675fae6 (patch)
treecfb4de6b4a86ee61c6c783d82df99eedc85b7842 /xmlrpc.php
parentdf3afcbc449773f4768e5dc4b05e7fb2c1197283 (diff)
- 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 e1eda88..41538a9 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);