You are here

function fontyourface_set_css_fallbacks in @font-your-face 7.2

Sets a font's CSS fallbacks.

1 call to fontyourface_set_css_fallbacks()
fontyourface_ui_apply_by_selector_form_submit in modules/fontyourface_ui/fontyourface_ui.module
Updates Fonts.

File

./fontyourface.module, line 416

Code

function fontyourface_set_css_fallbacks(&$font, $css_fallbacks) {
  db_update('fontyourface_font')
    ->fields(array(
    'css_fallbacks' => $css_fallbacks,
  ))
    ->condition('fid', $font->fid)
    ->execute();
  $font->css_fallbacks = $css_fallbacks;
}