You are here

function _google_fonts_family_array_key_encode in Google Fonts 7

Same name and namespace in other branches
  1. 6.2 google_fonts.module \_google_fonts_family_array_key_encode()
  2. 7.2 google_fonts.module \_google_fonts_family_array_key_encode()
4 calls to _google_fonts_family_array_key_encode()
google_fonts_admin_settings_form in ./google_fonts.admin.inc
Implements hook_admin_settings() for configuring the module
google_fonts_admin_settings_form_submit in ./google_fonts.admin.inc
Submit handler of the admin settings form Saves the fonts, CSS code and settings
google_fonts_update_7100 in ./google_fonts.install
Change the google_fonts array of enabled fonts to the new format
_google_fonts_admin_font_example in ./google_fonts.admin.inc
Returns the font family name, including a span with added styling

File

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

Code

function _google_fonts_family_array_key_encode($string) {
  return str_replace(' ', '_', $string);
}