You are here

fontdeck.install in @font-your-face 6.2

Removes fonts on disable.

File

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

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

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

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

// fontdeck_enable

/**
 * Implements hook_disable().
 */
function fontdeck_disable() {
  fontyourface_provider_disable('fontdeck');
  variable_del('fontdeck_project');
  variable_del('fontdeck_css');
}

// fontdeck_disable

Functions

Namesort descending Description
fontdeck_disable Implements hook_disable().
fontdeck_enable Implements hook_enable().