function _google_fonts_update_font_list in Google Fonts 7
Same name and namespace in other branches
- 6.2 google_fonts.module \_google_fonts_update_font_list()
- 7.2 google_fonts.module \_google_fonts_update_font_list()
Trigger to reset the locally stored variable and fetch a new font list
1 string reference to '_google_fonts_update_font_list'
- google_fonts_menu in ./
google_fonts.module - Implements hook_menu().
File
- ./
google_fonts.module, line 118 - This module enables Google Fonts on your website.
Code
function _google_fonts_update_font_list() {
$fonts = _google_fonts_available_fonts(TRUE);
if (!empty($fonts)) {
drupal_set_message(t('A new list of fonts have been fetched.'));
}
drupal_goto('admin/config/system/google_fonts');
}