download.module in Download 8.2
Same filename and directory in other branches
Handles module administration and download link
File
download.moduleView 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
Name | Description |
---|---|
download_requirements | Implements hook_requirements(). |