function commerce_file_requirements in Commerce File 7.2
Same name and namespace in other branches
- 7 commerce_file.install \commerce_file_requirements()
Implements hook_requirements().
File
- ./
commerce_file.install, line 6
Code
function commerce_file_requirements($phase) {
$requirements = array();
if ($phase == 'runtime') {
$int64_ok = PHP_INT_MAX === 9223372036854775807;
$requirements['commerce_file_int64'] = array(
'title' => t('Support for files larger than 2GB'),
'value' => $int64_ok ? t('Available') : t('Unavailable'),
'description' => t('A 64-bit PHP installation is required in order to support files larger than 2GB.'),
'severity' => $int64_ok ? REQUIREMENT_OK : REQUIREMENT_WARNING,
);
}
return $requirements;
}