You are here

function fontyourface_provider_disable in @font-your-face 7.2

Same name and namespace in other branches
  1. 6.2 fontyourface.module \fontyourface_provider_disable()
  2. 7 fontyourface.module \fontyourface_provider_disable()

Removes all fonts and related tags from given provider.

7 calls to fontyourface_provider_disable()
edge_fonts_disable in modules/edge_fonts/edge_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().

... See full list

File

./fontyourface.module, line 615

Code

function fontyourface_provider_disable($provider) {

  // Delete all fonts.
  db_delete('fontyourface_font')
    ->condition('provider', $provider)
    ->execute();
  fontyourface_delete_unused_tags();
}