From 579310a4baed6d11b9929529b5360a9c59f46bda Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 2 Oct 2010 01:22:41 +0000 Subject: - Patch #656266 by fgm, sun: hook_xmlrpc_alter() cannot alter built-in methods. --- includes/xmlrpcs.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes') 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]; -- cgit v1.2.3