function fontyourface_provider_disable in @font-your-face 7
Same name and namespace in other branches
- 6.2 fontyourface.module \fontyourface_provider_disable()
- 7.2 fontyourface.module \fontyourface_provider_disable()
Removes all fonts and related tags from given provider.
8 calls to fontyourface_provider_disable()
- common_fonts_disable in modules/
common_fonts/ common_fonts.install - Implements hook_disable().
- fontdeck_disable in modules/
fontdeck/ fontdeck.install - Implements hook_disable().
- fontsquirrel_disable in modules/
fontsquirrel/ fontsquirrel.install - Implements hook_disable().
- fonts_com_disable in modules/
fonts_com/ fonts_com.install - Implements hook_disable().
- google_fonts_api_disable in modules/
google_fonts_api/ google_fonts_api.install - Implements hook_disable().
File
- ./
fontyourface.module, line 1099
Code
function fontyourface_provider_disable($provider) {
// Delete all fonts.
db_delete('fontyourface_font')
->condition('provider', $provider)
->execute();
fontyourface_delete_unused_tags();
}