function kml_page in KML 5
Same name and namespace in other branches
- 6 kml.module \kml_page()
Displays directory of KML feeds available
1 call to kml_page()
- kml_interface in ./
kml.module - Default callback
File
- ./
kml.module, line 436 - KML Module
Code
function kml_page() {
// TODO: actually list all terms, groups, etc with links to their feeds
$content = t('<p>You can view all of the location-enabled content from this site using Google Earth. Simply click the icon and if prompted, tell your browser to open the file with Google Earth.</p>') . "\n";
$url = 'kml/node';
if (variable_get('kml_usenetworklinks', 1)) {
$url .= '/networklink';
}
$feeds[] = theme('kml_link', $url) . ' ' . l('All content from this site', $url);
$content .= theme('item_list', $feeds);
print theme('page', $content);
}