hook_xmlrpc

Versions
4.6 – 7
hook_xmlrpc()

Register XML-RPC callbacks.

This hook lets a module register callback functions to be called when particular XML-RPC methods are invoked by a client.

Return value

An associative array, keyed by XML-RPC method name. The values are themselves associative arrays containing the "function" key mapped to the name of the corresponding callback function.

Related topics

Code

developer/hooks/core.php, line 1103

<?php
function hook_xmlrpc() {
  return array('drupal.site.ping' => array('function' => 'drupal_directory_ping'),
    'drupal.login' => array('function' => 'drupal_login'));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.