function fontyourface_font_registry in @font-your-face 6.2
Same name and namespace in other branches
- 7.2 fontyourface.module \fontyourface_font_registry()
- 7 fontyourface.module \fontyourface_font_registry()
Manages registry of fonts used on current page, to provide list to fontyourface_preprocess_page().
2 calls to fontyourface_font_registry()
- fontyourface_preprocess_page in ./
fontyourface.module - Implements template_preprocess_page().
- fontyourface_preview in ./
fontyourface.module - Gets preview from provider, if available.
File
- ./
fontyourface.module, line 1028
Code
function fontyourface_font_registry($font = FALSE, $clear = FALSE) {
static $fonts = array();
if ($clear) {
$fonts = array();
}
// if
if ($font) {
$fonts[$font->fid] = $font;
}
// if
return $fonts;
}