You are here

function fotorama_gallery_requirements in Fotorama Gallery 8.2

Same name and namespace in other branches
  1. 8 fotorama_gallery.install \fotorama_gallery_requirements()

Implements hook_requirements().

File

./fotorama_gallery.install, line 21
Installation actions for Fotorama Gallery.

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;
}