function _color_save_stylesheet

_color_save_stylesheet($file, $style, &$paths)

Saves the rewritten stylesheet to disk.

File

modules/color/color.module, line 567
Allows users to change the color scheme of themes.

Code

function _color_save_stylesheet($file, $style, &$paths) {
  $filepath = file_unmanaged_save_data($style, $file, FILE_EXISTS_REPLACE);
  $paths['files'][] = $filepath;

  // Set standard file permissions for webserver-generated files.
  drupal_chmod($file);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!color!color.module/function/_color_save_stylesheet/7.x