You are here

function forena_pdf_update_7501 in Forena Reports 7.5

Alter forena PDF class names.

File

./forena_pdf.install, line 19
Forena PDF installation

Code

function forena_pdf_update_7501() {
  $pdf_generator = variable_get('forena_pdf_generator', '');
  switch ($pdf_generator) {
    case 'FrxMPDF':
      $pdf_generator = 'MPDFDocument';
      break;
    case 'FrxPrincePDF':
      $pdf_generator = 'PrincePDF';
      break;
    case 'FrxDocRaptor':
      $pdf_generator = 'DocRaptorPDF';
      break;
  }
  variable_set('forena_pdf_generator', $pdf_generator);
}