You are here

function views_plugin_style_kml::attach_to in KML 6.2

Same name and namespace in other branches
  1. 7 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 icon link.

File

views/views_plugin_style_kml.inc, line 22
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('kml_feed_icon');
  $this->view->feed_icon .= l($image, $path, $url_options);
}