You are here

function fontyourface_set_css_selector in @font-your-face 6.2

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

Sets a font's CSS selector.

2 calls to fontyourface_set_css_selector()
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 913

Code

function fontyourface_set_css_selector(&$font, $css_selector) {
  db_query("UPDATE {fontyourface_font} SET css_selector = '%s' WHERE fid = %d", $css_selector, $font->fid);
  $font->css_selector = $css_selector;
}