function xmlrpc_server_output
Same name and namespace in other branches
- 6.x drupal-6.x/includes/xmlrpcs.inc \xmlrpc_server_output()
Sends XML-RPC output to the browser.
Parameters
string $xml: XML to send to the browser.
2 calls to xmlrpc_server_output()
- xmlrpc_server in drupal-7.x/
includes/ xmlrpcs.inc - Invokes XML-RPC methods on this server.
- xmlrpc_server_error in drupal-7.x/
includes/ xmlrpcs.inc - Throws an XML-RPC error.
Archivo
- drupal-7.x/
includes/ xmlrpcs.inc, line 124 - Provides API for defining and handling XML-RPC requests.
Código
function xmlrpc_server_output($xml) {
$xml = '<?xml version="1.0"?>' . "\n" . $xml;
drupal_add_http_header('Content-Length', strlen($xml));
drupal_add_http_header('Content-Type', 'text/xml');
echo $xml;
drupal_exit();
}