You are here

function fontyourface_enable_font in @font-your-face 6.2

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

Enables a single font.

2 calls to fontyourface_enable_font()
fontyourface_admin_edit_form_submit in ./fontyourface.module
Edit form submit handler.
fontyourface_update_6200 in ./fontyourface.install
Implements hook_update_N().

File

./fontyourface.module, line 850

Code

function fontyourface_enable_font(&$font) {
  db_query("UPDATE {fontyourface_font} SET enabled = 1 WHERE fid = %d", $font->fid);
  $font->enabled = 1;
  $enable_function = $font->provider . '_fontyourface_enable';
  if (function_exists($enable_function)) {
    $enable_function($font);
  }

  // if
}