function views_plugin_style_kml::attach_to in KML 7
Same name and namespace in other branches
- 6.2 views/views_plugin_style_kml.inc \views_plugin_style_kml::attach_to()
Attach this view to another display as a feed.
Provide basic functionality for all export style views like attaching a feed image link.
File
- views/
views_plugin_style_kml.inc, line 25 - Extending the view_plugin_style class to provide a kml view style.
Class
- views_plugin_style_kml
- @file Extending the view_plugin_style class to provide a kml view style.
Code
function attach_to($display_id, $path, $title) {
$url_options = array(
'html' => TRUE,
);
// Include exposed filters
$query = $this->view
->get_exposed_input();
if ($query) {
$url_options['query'] = $query;
}
$image = theme('image', array(
'path' => $this->feed_image,
));
$this->view->feed_icon .= l($image, $this->view
->get_url(NULL, $path), $url_options);
}