You are here

typekit_api.install in @font-your-face 7

Removes fonts on disable.

File

modules/typekit_api/typekit_api.install
View source
<?php

/**
 * @file
 * Removes fonts on disable.
 */

/**
 * Implements hook_enable().
 */
function typekit_api_enable() {

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

// typekit_api_enable

/**
 * Implements hook_disable().
 */
function typekit_api_disable() {
  fontyourface_provider_disable('typekit_api');
  variable_del('typekit_api_token');
}

// typekit_api_disable

Functions

Namesort descending Description
typekit_api_disable Implements hook_disable().
typekit_api_enable Implements hook_enable().