function fotorama_gallery_requirements in Fotorama Gallery 8
Same name and namespace in other branches
- 8.2 fotorama_gallery.install \fotorama_gallery_requirements()
Implements hook_requirements().
File
- ./
fotorama_gallery.install, line 15
Code
function fotorama_gallery_requirements($phase) {
$requirements = [];
if ($phase == 'runtime' && !_fotorama_gallery_verify_library()) {
$requirements['fotorama_gallery_library'] = [
'title' => t('Fotorama Library'),
'description' => t('Fotorama Gallery module requires Fotorama library to works. Composer based install recommended, see README.md file for instructions.'),
'severity' => REQUIREMENT_ERROR,
];
}
return $requirements;
}