You are here

function fontyourface_available_fonts in @font-your-face 6

Gets and caches all available fonts.

4 calls to fontyourface_available_fonts()
fontyourface_admin_add_page in ./fontyourface.module
Add page shows available fonts.
fontyourface_admin_page in ./fontyourface.module
Admin page shows enabled fonts with link to add.
fontyourface_get_font_from_path in ./fontyourface.module
Gets a font based on path parameters.
fontyourface_preprocess_page in ./fontyourface.module
Implements template_preprocess_page().

File

./fontyourface.module, line 627

Code

function fontyourface_available_fonts() {
  static $available_fonts = FALSE;
  if (!$available_fonts) {
    $available_fonts = module_invoke_all('fontyourface_info');
  }

  // if
  return $available_fonts;
}