You are here

function fontyourface_update_7200 in @font-your-face 7.2

Moves admin interface to fontyourface_ui module.

File

./fontyourface.install, line 213
Adds fontyourface tables for tracking fonts.

Code

function fontyourface_update_7200() {

  // Move UI over to new fontyourface_ui module.
  module_enable(array(
    'fontyourface_ui',
  ));
  views_invalidate_cache();

  // Add new fields to schema.
  $schema = fontyourface_7200_schema();
  db_add_field('fontyourface_font', 'css_fallbacks', $schema['fontyourface_font']['fields']['css_fallbacks']);
  db_add_field('fontyourface_font', 'designer', $schema['fontyourface_font']['fields']['designer']);
  db_add_field('fontyourface_font', 'designer_url', $schema['fontyourface_font']['fields']['designer_url']);
}