You are here

function views_export_xls_plugin_style_xls::attach_to in Views Excel Export 6

Same name and namespace in other branches
  1. 7 views/views_export_xls_plugin_style_xls.inc \views_export_xls_plugin_style_xls::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_export_xls_plugin_style_xls.inc, line 30
Plugin include file for export style plugin.

Class

views_export_xls_plugin_style_xls
Generalized style plugin for export plugins.

Code

function attach_to($display_id, $path, $title) {
  $url_options = array(
    'html' => true,
  );
  $input = $this->view
    ->get_exposed_input();
  if ($input) {
    $url_options['query'] = $input;
  }
  $image = theme('image', $this->feed_image);
  $this->view->feed_icon .= l($image, $this->view
    ->get_url(NULL, $path), $url_options);
}