jwt.install in JSON Web Token Authentication (JWT) 8
Same filename and directory in other branches
Install, update, and uninstall functions for the jwt module.
File
jwt.installView source
<?php
/**
* @file
* Install, update, and uninstall functions for the jwt module.
*/
/**
* Implements hook_requirements().
*/
function jwt_requirements($phase) {
$requirements = [];
if ($phase == 'install') {
if (!class_exists('\\Firebase\\JWT\\JWT')) {
$requirements['jwt_library'] = [
'description' => t('JWT Authentication requires the firebase/php-jwt library.'),
'severity' => REQUIREMENT_ERROR,
];
}
}
return $requirements;
}
Functions
Name | Description |
---|---|
jwt_requirements | Implements hook_requirements(). |