function fontyourface_disable_font in @font-your-face 7.2
Same name and namespace in other branches
- 6.2 fontyourface.module \fontyourface_disable_font()
- 7 fontyourface.module \fontyourface_disable_font()
Disables a single font.
4 calls to fontyourface_disable_font()
- fontsquirrel_fontyourface_enable in modules/
fontsquirrel/ fontsquirrel.module - Implements hook_fontyourface_enable().
- fontyourface_ui_admin_disable_ajax in modules/
fontyourface_ui/ fontyourface_ui.module - Disables font based on POSTed fid.
- fontyourface_ui_admin_disable_form_submit in modules/
fontyourface_ui/ fontyourface_ui.module - Disable form submit handler.
- fontyourface_ui_admin_edit_form_submit in modules/
fontyourface_ui/ fontyourface_ui.module - Edit form submit handler.
File
- ./
fontyourface.module, line 376
Code
function fontyourface_disable_font(&$font) {
db_update('fontyourface_font')
->fields(array(
'enabled' => 0,
))
->condition('fid', $font->fid)
->execute();
$font->enabled = 0;
$disable_function = $font->provider . '_fontyourface_disable';
if (function_exists($disable_function)) {
return $disable_function($font);
}
// if
return TRUE;
}