You are here

function local_fonts_enable in @font-your-face 7

Same name and namespace in other branches
  1. 6.2 modules/local_fonts/local_fonts.install \local_fonts_enable()
  2. 7.2 modules/local_fonts/local_fonts.install \local_fonts_enable()

Implements hook_enable().

File

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

Code

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();
}