isbn.install in ISBN Field 8
Same filename and directory in other branches
File
isbn.installView 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
Name | Description |
---|---|
isbn_requirements | Implements hook_requirements(). |