function fontyourface_provider_disable in @font-your-face 6.2
Same name and namespace in other branches
- 7.2 fontyourface.module \fontyourface_provider_disable()
- 7 fontyourface.module \fontyourface_provider_disable()
Removes all fonts and related tags from given provider.
7 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 1070
Code
function fontyourface_provider_disable($provider) {
// Delete all fonts and font-tag relationships.
$font_sql = "DELETE f.*, tf.*\n FROM {fontyourface_font} f\n LEFT JOIN {fontyourface_tag_font} tf\n ON tf.fid = f.fid\n WHERE f.provider = '%s'";
db_query($font_sql, $provider);
fontyourface_delete_unused_tags();
}