function _color_import_stylesheet in Drupal 5
Helper function for _color_rewrite_stylesheet.
1 string reference to '_color_import_stylesheet'
- _color_rewrite_stylesheet in modules/
color/ color.module - Rewrite the stylesheet to match the colors in the palette.
File
- modules/
color/ color.module, line 368
Code
function _color_import_stylesheet($matches) {
return preg_replace('/url\\(([\'"]?)(?![a-z]+:)/i', 'url(\\1' . dirname($matches[1]) . '/', file_get_contents($matches[1]));
}