You are here

function forena_pdf_forena_document_types in Forena Reports 7.3

Same name and namespace in other branches
  1. 8 forena_pdf/forena_pdf.module \forena_pdf_forena_document_types()
  2. 7.5 forena_pdf.module \forena_pdf_forena_document_types()
  3. 7.4 forena_pdf.module \forena_pdf_forena_document_types()

Implementation of hook_forena_document_types

File

./forena_pdf.module, line 26
Forena pdf generation module @author metzlerd

Code

function forena_pdf_forena_document_types() {

  //require_once 'docformats/FrxPrincePDF.inc';
  $items = array();
  $pdf_generator = variable_get('forena_pdf_generator', '');
  if ($pdf_generator) {
    include_once 'docformats/' . $pdf_generator . '.inc';
    $items['pdf'] = array(
      'class' => $pdf_generator,
      'title' => t('PDF Document'),
    );
  }
  return $items;
}