function bibcite_bibtex_requirements in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x modules/bibcite_bibtex/bibcite_bibtex.install \bibcite_bibtex_requirements()
Implements hook_requirements().
File
- modules/
bibcite_bibtex/ bibcite_bibtex.install, line 11 - Module installation hooks implementation.
Code
function bibcite_bibtex_requirements($phase) {
$requirements = [];
switch ($phase) {
case 'runtime':
case 'install':
if (!class_exists('\\AudioLabs\\BibtexParser\\BibtexParser')) {
$requirements['bibcite_bibtex_dependencies'] = [
'title' => t('BibTeX dependencies'),
'description' => t("Bibliography & Citation - BibTeX requires the audiolabs/bibtexparser library. See the module's README.md file for more information."),
'severity' => REQUIREMENT_ERROR,
];
}
}
return $requirements;
}