function xmlrpc_server_xmlrpc in Services 6
Same name and namespace in other branches
- 5 servers/xmlrpc_server/xmlrpc_server.module \xmlrpc_server_xmlrpc()
- 6.3 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()
1 call to xmlrpc_server_xmlrpc()
- xmlrpc_server_server in servers/
xmlrpc_server/ xmlrpc_server.module
File
- servers/
xmlrpc_server/ xmlrpc_server.module, line 24 - @author Services Dev Team
Code
function xmlrpc_server_xmlrpc() {
$callbacks = array();
foreach (services_get_all() as $method) {
$args = array();
foreach ($method['#args'] as $arg) {
if (!is_array($arg)) {
$args[] = $arg;
}
else {
$args[] = $arg['#type'];
}
}
$callbacks[] = array(
$method['#method'],
'xmlrpc_server_call_wrapper',
array_merge(array(
$method['#return'],
), $args),
$method['#help'],
);
}
return $callbacks;
}