Files
popsu-d7/sites/all/modules/fontyourface/modules/fontdeck/fontdeck.install
Bachir Soussi Chiadmi 1bc61b12ad first import
2015-04-08 11:40:19 +02:00

40 lines
694 B
Plaintext

<?php
/**
* @file
* Removes fonts on disable.
*/
/**
* Implements hook_enable().
*/
function fontdeck_enable() {
// Set weight to 1 to ensure fontdeck_preprocess_html() is executed after
// fontyourface_preprocess_html(), which has weight of 0.
db_update('system')
->fields(array('weight' => 1))
->condition('name', 'fontdeck')
->execute();
} // fontdeck_enable
/**
* Implements hook_disable().
*/
function fontdeck_disable() {
fontyourface_provider_disable('fontdeck');
} // fontdeck_disable
/**
* Implements hook_uninstall().
*/
function fontdeck_uninstall() {
variable_del('fontdeck_project');
variable_del('fontdeck_css');
} // fontdeck_uninstall