You are here

function download_requirements in Download 8.2

Implements hook_requirements().

File

./download.module, line 12
Handles module administration and download link

Code

function download_requirements($phase) {
  $requirements = [];
  if ($phase == 'install') {
    if (!class_exists('\\PclZip')) {
      $requirements['pclzip_library'] = [
        'description' => t('Download requires the pclzip/pclzip library.'),
        'severity' => REQUIREMENT_ERROR,
      ];
    }
  }
  return $requirements;
}