You are here

function local_fonts_preprocess_page in @font-your-face 6.2

Same name and namespace in other branches
  1. 7 modules/local_fonts/local_fonts.module \local_fonts_preprocess_page()

Implements template_preprocess_page().

File

modules/local_fonts/local_fonts.module, line 456

Code

function local_fonts_preprocess_page(&$vars) {
  if (!empty($vars['fontyourface'])) {
    foreach ($vars['fontyourface'] as $used_font) {
      if ($used_font->provider == 'local_fonts') {
        $metadata = unserialize($used_font->metadata);
        fontyourface_add_css_in_preprocess($vars, $metadata['path'], FALSE);
      }

      // if
    }

    // foreach
  }

  // if
}