You are here

function certificate_requirements in Certificate 6.2

Same name and namespace in other branches
  1. 8.3 certificate.install \certificate_requirements()
  2. 6 certificate.install \certificate_requirements()
  3. 7.3 certificate.install \certificate_requirements()
  4. 7.2 certificate.install \certificate_requirements()
  5. 3.x certificate.install \certificate_requirements()

Implementation of hook_requirements().

File

./certificate.install, line 145
Install the Certificate module.

Code

function certificate_requirements($phase) {
  if ($phase == 'runtime') {
    if (variable_get('print_pdf_pdf_tool', '') == '') {
      drupal_set_message('Certificates will not display before selecting a PDF generation tool in !link.', array(
        '!link' => l('Printer, e-mail and PDF versions', 'admin/settings/print/pdf'),
      ));
    }
  }
}