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 