You are here

function fontyourface_set_css_selector in @font-your-face 7

Same name and namespace in other branches
  1. 6.2 fontyourface.module \fontyourface_set_css_selector()
  2. 7.2 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 943

Code

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