You are here

function fonts_com_fontyourface_selector_update in @font-your-face 7.2

Implements hook_fontyourface_selector_update().

File

modules/fonts_com/fonts_com.module, line 874

Code

function fonts_com_fontyourface_selector_update($font) {
  module_load_include('inc', 'fonts_com', 'api');
  $project_id = variable_get('fonts_com_project', '');
  $metadata = unserialize($font->metadata);
  $font_id = $metadata['details']->FontID;
  fonts_com_set_font_selector($project_id, $font_id, $font->css_selector);
}