You are here

function _color_save_stylesheet in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/color/color.module \_color_save_stylesheet()
  2. 6 modules/color/color.module \_color_save_stylesheet()
  3. 9 core/modules/color/color.module \_color_save_stylesheet()

Saves the rewritten stylesheet to disk.

1 call to _color_save_stylesheet()
color_scheme_form_submit in modules/color/color.module
Form submission handler for color_scheme_form().

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);
}