You are here

function views_pdf_plugin_style_grid::attach_to in Views PDF 7.3

Attach this view to another display.

File

./views_pdf_plugin_style_grid.inc, line 155
Grid PDF style

Class

views_pdf_plugin_style_grid
This class holds all the funtionality used for the grid 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,
  ));
}