function services_xml_output in Services 7
Same name and namespace in other branches
- 5 services.module \services_xml_output()
- 6 services.module \services_xml_output()
- 6.2 services.module \services_xml_output()
1 call to services_xml_output()
- services_crossdomain_xml in ./
services.module - Callback for crossdomain.xml
File
- ./
services.module, line 160 - @author Services Dev Team
Code
function services_xml_output($xml) {
$xml = '<?xml version="1.0"?>' . "\n" . $xml;
header('Connection: close');
header('Content-Length: ' . drupal_strlen($xml));
header('Content-Type: text/xml');
header('Date: ' . date('r'));
echo $xml;
exit;
}