You are here

jwt.install in JSON Web Token Authentication (JWT) 8

Same filename and directory in other branches
  1. 8.0 jwt.install

Install, update, and uninstall functions for the jwt module.

File

jwt.install
View 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

Namesort descending Description
jwt_requirements Implements hook_requirements().