hook_xmlrpc
Definition
hook_xmlrpc()
developer/hooks/core.php, line 1103
Description
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
| Name | Description |
|---|---|
| Hooks | Allow modules to interact with the Drupal core. |
Code
<?php
function hook_xmlrpc() {
return array('drupal.site.ping' => array('function' => 'drupal_directory_ping'),
'drupal.login' => array('function' => 'drupal_login'));
}
?> 