You are here

function isbn_requirements in ISBN Field 8

Implements hook_requirements().

File

./isbn.install, line 8

Code

function isbn_requirements($phase) {
  $requirements = [];
  if ($phase == 'install') {
    if (!class_exists('\\Nicebooks\\Isbn\\IsbnTools')) {
      $requirements['isbn_library'] = [
        'description' => t('ISBN module requires the nicebooks/isbn library.'),
        'severity' => REQUIREMENT_ERROR,
      ];
    }
  }
  return $requirements;
}