function _kml_send_feed in KML 5
Same name and namespace in other branches
- 6 kml.module \_kml_send_feed()
Send KML feed.
2 calls to _kml_send_feed()
- _kml_feed in ./
kml.module - Displays a KML feed containing all location-enabled nodes.
- _kml_feed_check_cache in ./
kml.module
File
- ./
kml.module, line 556 - KML Module
Code
function _kml_send_feed($output) {
$extension = variable_get('kml_usekmz', 0) == 1 ? '.kmz' : '.kml';
$filename = variable_get('kml_filename', 'nodes') . $extension;
drupal_set_header('Content-Type: application/vnd.google-earth.kml+xml');
drupal_set_header('Content-Disposition: attachment; filename="' . $filename . '"');
print $output;
module_invoke_all('exit');
exit;
}