function fontsquirrel_enable in @font-your-face 6.2
Same name and namespace in other branches
- 7.2 modules/fontsquirrel/fontsquirrel.install \fontsquirrel_enable()
- 7 modules/fontsquirrel/fontsquirrel.install \fontsquirrel_enable()
Implements hook_enable().
File
- modules/
fontsquirrel/ fontsquirrel.install, line 11 - Removes fonts on disable.
Code
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');
}