function template_preprocess_kml_placemark in KML 6.2
Same name and namespace in other branches
- 7 views/kml_views.theme.inc \template_preprocess_kml_placemark()
Preprocess for theme('kml_placemark').
File
- views/
kml_views.theme.inc, line 39 - Theming functions for KML module views output.
Code
function template_preprocess_kml_placemark(&$vars) {
$vars['name'] = filter_xss_admin($vars['point']['name']);
$vars['description'] = filter_xss_admin($vars['point']['description']);
$vars['coords'] = check_plain($vars['point']['point']);
$vars['styleUrl'] = check_plain($vars['point']['styleUrl']);
// Create a variable for every field that is unassigned, (is not Name, Desc,
// Lat, or Lon.) These can be used in custom kml-placemark.tpl.php theme
// implementations, each as $content['VARNAME'].
foreach ($vars['point']['content'] as $key => $value) {
$vars['content'][$key] = filter_xss_admin($value);
}
}