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