You are here

function kernest_preprocess_page in @font-your-face 7

Same name and namespace in other branches
  1. 6 modules/kernest/kernest.module \kernest_preprocess_page()

Implements template_preprocess_page().

File

modules/kernest/kernest.module, line 110

Code

function kernest_preprocess_page(&$vars) {
  if (!empty($vars['fontyourface'])) {
    foreach ($vars['fontyourface'] as $used_font) {
      if ($used_font->provider == 'kernest') {
        $metaddata = unserialize($used_font->metadata);
        fontyourface_add_css_in_preprocess($vars, $used_font->url . '.css', 'remote');
      }

      // if
    }

    // foreach
  }

  // if
}