function views_pdf_plugin_style_unformatted::attach_to in Views PDF 7.2
Same name and namespace in other branches
- 6 views_pdf_plugin_style_unformatted.inc \views_pdf_plugin_style_unformatted::attach_to()
- 7.3 views_pdf_plugin_style_unformatted.inc \views_pdf_plugin_style_unformatted::attach_to()
- 7 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
- plugins/
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,
));
}