You are here

function print_pdf_update_7204 in Printer, email and PDF versions 7.2

Enable the PDF generation sub-module being used.

File

print_pdf/print_pdf.install, line 313
Install, update and uninstall functions for the print_pdf module.

Code

function print_pdf_update_7204(&$sandbox) {

  // Since update_7201 already stored the correct module in the array, use that.
  $tool = explode('|', variable_get('print_pdf_pdf_tool', PRINT_PDF_PDF_TOOL_DEFAULT));
  if (count($tool) == 2) {
    module_enable(array(
      $tool[0],
    ), FALSE);
  }
}