function fonts_com_enable in @font-your-face 7.2
Same name and namespace in other branches
- 6.2 modules/fonts_com/fonts_com.install \fonts_com_enable()
- 7 modules/fonts_com/fonts_com.install \fonts_com_enable()
Implements hook_enable().
File
- modules/
fonts_com/ fonts_com.install, line 11 - Removes fonts on disable.
Code
function fonts_com_enable() {
// Set weight to 1 to ensure fonts_com_preprocess_html() is executed after
// fontyourface_preprocess_html(), which has weight of 0.
db_update('system')
->fields(array(
'weight' => 1,
))
->condition('name', 'fonts_com')
->execute();
}