You are here

function kernest_preprocess_page in @font-your-face 6

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

Implements template_preprocess_page().

File

modules/kernest/kernest.module, line 154

Code

function kernest_preprocess_page(&$vars) {
  if (!empty($vars['fontyourface'])) {
    $links = array();
    $fonts = kernest_list();
    foreach ($vars['fontyourface'] as $used_font) {
      if ($used_font->provider == 'kernest') {
        fontyourface_add_css_in_preprocess($vars, $fonts[$used_font->group_name]['fonts'][$used_font->name]['url'] . '.css', TRUE);
      }

      // if
    }

    // foreach
  }

  // if
}