You are here

function fontyourface_rewrite_css in @font-your-face 7.2

Re-writes fonts.css file.

1 call to fontyourface_rewrite_css()
fontyourface_preprocess_html in ./fontyourface.module
Implements template_preprocess_html().

File

./fontyourface.module, line 220

Code

function fontyourface_rewrite_css($css) {

  // Write CSS.
  $destination = file_stream_wrapper_uri_normalize('public://fontyourface/font.css');
  $destination_directory = dirname($destination);
  if (file_prepare_directory($destination_directory, FILE_CREATE_DIRECTORY)) {
    file_unmanaged_save_data($css, $destination, FILE_EXISTS_REPLACE);
  }

  // if
}