You are here

function views_pdf_plugin_style_unformatted::attach_to in Views PDF 7

Same name and namespace in other branches
  1. 6 views_pdf_plugin_style_unformatted.inc \views_pdf_plugin_style_unformatted::attach_to()
  2. 7.3 views_pdf_plugin_style_unformatted.inc \views_pdf_plugin_style_unformatted::attach_to()
  3. 7.2 plugins/views_pdf_plugin_style_unformatted.inc \views_pdf_plugin_style_unformatted::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_unformatted.inc, line 75
Unformatted PDF style

Class

views_pdf_plugin_style_unformatted
This class holds all the funtionality used for the unformatted style plugin.

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;
  }
  if (empty($this->view->feed_icon)) {
    $this->view->feed_icon = '';
  }
  $this->view->feed_icon .= theme('views_pdf_icon', array(
    'path' => $this->view
      ->get_url(NULL, $path),
    'title' => $title,
    'options' => $url_options,
  ));
}