function fontyourface_font_registry in @font-your-face 7
Same name and namespace in other branches
- 6.2 fontyourface.module \fontyourface_font_registry()
- 7.2 fontyourface.module \fontyourface_font_registry()
Manages registry of fonts used on current page, to provide list to fontyourface_preprocess_page().
3 calls to fontyourface_font_registry()
- fontyourface_admin_edit_form in ./
fontyourface.module - Edit form changes a single font, including CSS selector and enabled status.
- 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 1057
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;
}