function fontsquirrel_api_requirements in @font-your-face 8.3
Implements hook_requirements().
File
- modules/
fontsquirrel_api/ fontsquirrel_api.install, line 11 - Google Fonts install file.
Code
function fontsquirrel_api_requirements($phase) {
$requirements = [];
if (!function_exists('zip_open')) {
$requirements['zip_open'] = [
'title' => t('PHP zip_open function missing'),
'description' => t('The PHP function zip_open is missing. This is required to unzip Font Squirrel Webfonts'),
'severity' => REQUIREMENT_ERROR,
];
}
return $requirements;
}