summaryrefslogtreecommitdiff
path: root/includes/xmlrpcs.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-10-02 01:22:41 +0000
committerDries Buytaert <dries@buytaert.net>2010-10-02 01:22:41 +0000
commit579310a4baed6d11b9929529b5360a9c59f46bda (patch)
treead12538ff2828b548674dd372e3f4c196f9133bf /includes/xmlrpcs.inc
parent96672deebfe1094bc118d0f82e354cba2ccd5c43 (diff)
downloadbrdo-579310a4baed6d11b9929529b5360a9c59f46bda.tar.gz
brdo-579310a4baed6d11b9929529b5360a9c59f46bda.tar.bz2
- Patch #656266 by fgm, sun: hook_xmlrpc_alter() cannot alter built-in methods.
Diffstat (limited to 'includes/xmlrpcs.inc')
-rw-r--r--includes/xmlrpcs.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/xmlrpcs.inc b/includes/xmlrpcs.inc
index 7fb4ca895..fd5a40733 100644
--- a/includes/xmlrpcs.inc
+++ b/includes/xmlrpcs.inc
@@ -45,7 +45,9 @@ function xmlrpc_server($callbacks) {
// We build an array of all method names by combining the built-ins
// with those defined by modules implementing the _xmlrpc hook.
// Built-in methods are overridable.
- foreach (array_merge($defaults, (array) $callbacks) as $key => $callback) {
+ $callbacks = array_merge($defaults, (array) $callbacks);
+ drupal_alter('xmlrpc', $callbacks);
+ foreach ($callbacks as $key => $callback) {
// we could check for is_array($callback)
if (is_int($key)) {
$method = $callback[0];