function certificate_requirements in Certificate 3.x
Same name and namespace in other branches
- 8.3 certificate.install \certificate_requirements()
- 6.2 certificate.install \certificate_requirements()
- 6 certificate.install \certificate_requirements()
- 7.3 certificate.install \certificate_requirements()
- 7.2 certificate.install \certificate_requirements()
Implements hook_requirements().
File
- ./
certificate.install, line 151 - 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;
}