You are here

function views_pdf_plugin_display::attach_to in Views PDF 7.2

Same name and namespace in other branches
  1. 6 views_pdf_plugin_display.inc \views_pdf_plugin_display::attach_to()
  2. 7.3 views_pdf_plugin_display.inc \views_pdf_plugin_display::attach_to()
  3. 7 views_pdf_plugin_display.inc \views_pdf_plugin_display::attach_to()

Attach to another view.

Overrides views_plugin_display::attach_to

File

plugins/views_pdf_plugin_display.inc, line 553
PDF display plugin.

Class

views_pdf_plugin_display
This class contains all the functionality of the PDF display.

Code

function attach_to($display_id) {
  $displays = $this
    ->get_option('displays');
  if (empty($displays[$display_id])) {
    return;
  }

  // Defer to the feed style; it may put in meta information, and/or
  // attach a feed icon.
  $plugin = $this
    ->get_plugin();
  if ($plugin) {
    $clone = $this->view
      ->clone_view();
    $clone
      ->set_display($this->display->id);
    $clone
      ->build_title();
    $plugin
      ->attach_to($display_id, $this
      ->get_path(), $clone
      ->get_title());
  }
}