You are here

function google_fonts_api_enable in @font-your-face 6.2

Same name and namespace in other branches
  1. 7.2 modules/google_fonts_api/google_fonts_api.install \google_fonts_api_enable()
  2. 7 modules/google_fonts_api/google_fonts_api.install \google_fonts_api_enable()

Implements hook_enable().

File

modules/google_fonts_api/google_fonts_api.install, line 11
Removes fonts on disable.

Code

function google_fonts_api_enable() {

  // Weight must be above @font-your-face weight so preprocess comes after
  db_query("UPDATE {system} SET weight = 1 WHERE name = 'google_fonts_api'");

  // Import/update fonts
  fontyourface_import_fonts('google_fonts_api');
}