You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 5, 2018. It is now read-only.
* Install, update and uninstall functions for the image_effects module.
*/
/**
* Implements hook_requirements().
*/
function image_effects_requirements($phase) {
$requirements = [];
// Check PHP GD2 FreeType support.
if (function_exists('gd_info')) {
$info = gd_info();
if (!function_exists('imagettftext') || !isset($info["FreeType Support"])) {
// No FreeType support, raise warning.
$requirements['image_effects_gd_freetype'] = [
'title' => t('GD library FreeType support'),
'value' => t('Not installed'),
'severity' => REQUIREMENT_WARNING,
'description' => t('The GD Library for PHP is enabled, but was compiled without FreeType support. Image effects using fonts will not be available with the GD image toolkit.'),
];
}
}
return $requirements;
}
/**
* Minimum 1.x schema version to allow upgrading from.