You are here

function _google_fonts_add_custom_css in Google Fonts 7

Same name and namespace in other branches
  1. 6.2 google_fonts.module \_google_fonts_add_custom_css()
  2. 7.2 google_fonts.module \_google_fonts_add_custom_css()
1 call to _google_fonts_add_custom_css()
google_fonts_init in ./google_fonts.module
Implements hook_init().

File

./google_fonts.module, line 69
This module enables Google Fonts on your website.

Code

function _google_fonts_add_custom_css() {

  // Now add it to the list of CSS files to be loaded
  drupal_add_css(_google_fonts_cache(variable_get("google_fonts_css_contents", '')), array(
    'type' => 'file',
    'every_page' => TRUE,
    'group' => CSS_THEME,
  ));
}