You are here

function typekit_api_enable in @font-your-face 7.2

Same name and namespace in other branches
  1. 6.2 modules/typekit_api/typekit_api.install \typekit_api_enable()
  2. 7 modules/typekit_api/typekit_api.install \typekit_api_enable()

Implements hook_enable().

File

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

Code

function typekit_api_enable() {

  // Set weight to 1 to ensure typekit_api_preprocess_html() is executed after
  // fontyourface_preprocess_html(), which has weight of 0.
  db_update('system')
    ->fields(array(
    'weight' => 1,
  ))
    ->condition('name', 'typekit_api')
    ->execute();
}