fontsquirrel_api.install in @font-your-face 8.3
Google Fonts install file.
File
modules/fontsquirrel_api/fontsquirrel_api.installView source
<?php
/**
* @file
* Google Fonts install file.
*/
/**
* Implements hook_requirements().
*/
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;
}
/**
* Implements hook_install().
*/
function fontsquirrel_api_install() {
module_set_weight('fontsquirrel_api', 10);
}
/**
* Implements hook_uninstall().
*/
function fontsquirrel_api_uninstall() {
fontyourface_delete('fontsquirrel_api');
}
Functions
Name | Description |
---|---|
fontsquirrel_api_install | Implements hook_install(). |
fontsquirrel_api_requirements | Implements hook_requirements(). |
fontsquirrel_api_uninstall | Implements hook_uninstall(). |