fontsquirrel.install in @font-your-face 6.2
Same filename and directory in other branches
Removes fonts on disable.
File
modules/fontsquirrel/fontsquirrel.installView source
<?php
/**
* @file
* Removes fonts on disable.
*/
/**
* Implements hook_enable().
*/
function fontsquirrel_enable() {
// Weight must be above @font-your-face weight so preprocess comes after
db_query("UPDATE {system} SET weight = 1 WHERE name = 'fontsquirrel'");
// Import/update fonts
fontyourface_import_fonts('fontsquirrel');
}
// fontsquirrel_enable
/**
* Implements hook_disable().
*/
function fontsquirrel_disable() {
fontyourface_provider_disable('fontsquirrel');
}
// fontsquirrel_disable
Functions
Name | Description |
---|---|
fontsquirrel_disable | Implements hook_disable(). |
fontsquirrel_enable | Implements hook_enable(). |