_color_save_stylesheet

Versions
6 – 7
_color_save_stylesheet($file, $style, &$paths)

Save the rewritten stylesheet to disk.

Code

modules/color/color.module, line 441

<?php
function _color_save_stylesheet($file, $style, &$paths) {

  // Write new stylesheet.
  file_save_data($style, $file, FILE_EXISTS_REPLACE);
  $paths['files'][] = $file;

  // Set standard file permissions for webserver-generated files.
  @chmod($file, 0664);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.