You are here

local_fonts.install in @font-your-face 7

Removes fonts on disable.

File

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

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

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

  // Weight must be above @font-your-face weight so preprocess comes after
  // TODO Please review the conversion of this statement to the D7 database API syntax.

  /* db_query("UPDATE {system} SET weight = 1 WHERE name = 'local_fonts'") */
  db_update('system')
    ->fields(array(
    'weight' => 1,
  ))
    ->condition('name', 'local_fonts')
    ->execute();
}

// local_fonts_enable

/**
 * Implements hook_disable().
 */
function local_fonts_disable() {
  fontyourface_provider_disable('local_fonts');
}

// local_fonts_disable

Functions

Namesort descending Description
local_fonts_disable Implements hook_disable().
local_fonts_enable Implements hook_enable().