You are here

isbn.install in ISBN Field 8

Same filename and directory in other branches
  1. 6.0 isbn.install
  2. 7 isbn.install

File

isbn.install
View source
<?php

/**
 *
 *  Implements hook_requirements().
 *
 */
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;
}

Functions

Namesort descending Description
isbn_requirements Implements hook_requirements().