function xmlrpc_server_xmlrpc in Services 6.3
Same name and namespace in other branches
- 5 servers/xmlrpc_server/xmlrpc_server.module \xmlrpc_server_xmlrpc()
- 6 servers/xmlrpc_server/xmlrpc_server.module \xmlrpc_server_xmlrpc()
- 6.2 servers/xmlrpc_server/xmlrpc_server.module \xmlrpc_server_xmlrpc()
- 7.3 servers/xmlrpc_server/xmlrpc_server.module \xmlrpc_server_xmlrpc()
- 7 servers/xmlrpc_server/xmlrpc_server.module \xmlrpc_server_xmlrpc()
Return an array of all defined services methods and callbacks.
See also
1 call to xmlrpc_server_xmlrpc()
- xmlrpc_server_server in servers/
xmlrpc_server/ xmlrpc_server.module - Implementation of hook_server().
File
- servers/
xmlrpc_server/ xmlrpc_server.module, line 38 - Enable XML-RPC for services module.
Code
function xmlrpc_server_xmlrpc() {
$callbacks = array();
module_load_include('runtime.inc', 'services');
$resources = services_get_resources(services_get_server_info('endpoint', ''));
if (!empty($resources)) {
// Translate all resources
foreach ($resources as $name => $def) {
foreach (services_resources_as_procedures($def, $name) as $method) {
$callbacks[$method['method']] = 'xmlrpc_server_call_wrapper';
}
}
}
return $callbacks;
}