You are here

function views_pdf_plugin_style_table::attach_to in Views PDF 6

Same name and namespace in other branches
  1. 7.3 views_pdf_plugin_style_table.inc \views_pdf_plugin_style_table::attach_to()
  2. 7 views_pdf_plugin_style_table.inc \views_pdf_plugin_style_table::attach_to()
  3. 7.2 plugins/views_pdf_plugin_style_table.inc \views_pdf_plugin_style_table::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_pdf_plugin_style_table.inc, line 377
Table PDF style plugin

Class

views_pdf_plugin_style_table
Style plugin to render each item as a row in a table.

Code

function attach_to($display_id, $path, $title) {
  $display = $this->view->display[$display_id]->handler;
  $url_options = array();
  $input = $this->view
    ->get_exposed_input();
  if ($input) {
    $url_options['query'] = $input;
  }
  $url = url($this->view
    ->get_url(NULL, $path), $url_options);
  if (empty($this->view->feed_icon)) {
    $this->view->feed_icon = '';
  }
  $this->view->feed_icon .= theme('views_pdf_icon', $url, $title);
}