edge_fonts.install in @font-your-face 7.2
Install/uninstall tasks for the Edge Fonts module.
File
modules/edge_fonts/edge_fonts.installView source
<?php
/**
* @file
* Install/uninstall tasks for the Edge Fonts module.
*/
/**
* Implements hook_enable().
*/
function edge_fonts_enable() {
// Set weight to 1 to ensure edge_fonts_preprocess_html() is executed after
// fontyourface_preprocess_html(), which has weight of 0.
db_update('system')
->fields(array(
'weight' => 1,
))
->condition('name', 'edge_fonts')
->execute();
// Import/update fonts.
fontyourface_import_fonts('edge_fonts');
}
/**
* Implements hook_disable().
*/
function edge_fonts_disable() {
fontyourface_provider_disable('edge_fonts');
}
/**
* Implements hook_uninstall().
*/
function edge_fonts_uninstall() {
variable_del('edge_fonts_base');
variable_del('edge_fonts_subsets');
}
Functions
Name | Description |
---|---|
edge_fonts_disable | Implements hook_disable(). |
edge_fonts_enable | Implements hook_enable(). |
edge_fonts_uninstall | Implements hook_uninstall(). |