You are here

function fontyourface_parse_theme_info_file in @font-your-face 7.2

Parse the info file of the currently used theme

1 call to fontyourface_parse_theme_info_file()
fontyourface_add_theme_info_fonts in ./fontyourface.module
Load and display fonts that have been added through THEMENAME.info.

File

./fontyourface.module, line 700

Code

function fontyourface_parse_theme_info_file() {
  $font_declarations = array();
  $theme_default = variable_get('theme_default', 'bartik');
  $info = drupal_parse_info_file(drupal_get_path('theme', $theme_default) . '/' . $theme_default . '.info');
  if (isset($info['fonts'])) {
    $font_declarations = $info['fonts'];
  }

  // if
  return $font_declarations;
}