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

Save the rewritten stylesheet to disk.

1 call to _color_save_stylesheet()
color_scheme_form_submit in modules/color/color.module
Submit handler for color change form.

File

modules/color/color.module, line 454

Code

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