You are here

function certificate_requirements in Certificate 7.3

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

Implements hook_requirements().

File

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

Code

function certificate_requirements($phase) {
  $requirements = array();
  if ($phase == 'runtime') {
    if (variable_get('print_pdf_pdf_tool', '') == '') {
      $requirements['certificate_pdf_tool'] = array(
        'title' => t('Certificate PDF generation tool must be selected'),
        'description' => t('Certificates will not display before selecting a PDF generation tool in !link.', array(
          '!link' => l('Printer, e-mail and PDF versions', 'admin/config/user-interface/print/pdf'),
        )),
        'severity' => REQUIREMENT_ERROR,
      );
    }
  }
  return $requirements;
}