You are here

download.module in Download 8.2

Same filename and directory in other branches
  1. 7.2 download.module
  2. 7 download.module

Handles module administration and download link

File

download.module
View source
<?php

/**
 * @file
 *
 * Handles module administration and download link
 */

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

Functions

Namesort descending Description
download_requirements Implements hook_requirements().