You are here

function fontyourface_features_rebuild in @font-your-face 7.2

Implements hook_features_rebuild().

Rebuilds @font-your-face fonts from code defaults.

1 call to fontyourface_features_rebuild()
fontyourface_features_revert in ./fontyourface.features.inc
Implements hook_features_revert().

File

./fontyourface.features.inc, line 124
Integrates Features for @font-your-face.

Code

function fontyourface_features_rebuild($module) {
  $saved_fonts = module_invoke($module, 'fontyourface_features_default_font');
  foreach ($saved_fonts as $key => $font) {
    $font = (object) $font;
    $font->tags = array();
    $saved = fontyourface_save_font($font, TRUE);
  }
}