You are here

function theme_pdf_formatter_iframe in PDF 6

Formatter theme function for file fields : default: function calls hook_menu file/pdf_viewer/%node which calls pdf_js_viewer

File

./pdf.module, line 84

Code

function theme_pdf_formatter_iframe($element) {
  global $language;
  $content = '<iframe class="pdf" frameborder="no" width="100%" height="1050px" src="';
  $content .= $language->language . '/file/pdf_viewer/' . $element['#node']->nid;
  $content .= '"></iframe>';
  return $content;
}