Issue link: http://drupal.org/node/224333#drupal_add_css_inline
Attached upgrade routine changes drupal_set_html_head() calls that contain inline css to drupal_add_css().
Test function:
function example_drupal_set_html_head_css() { $color = variable_get('backgroundcolor', '#FFFFFF'); drupal_set_html_head("<style type='text/css'>body {background-color: $color}</style>"); drupal_set_html_head('<style type="text/css">div {background-url: url("images/test.png");}</style>'); drupal_set_html_head(' <style type="text/css"> div { background-url: url("images/test.png"); } </style> '); }
Implemented in next dev release with following changes: changed test function name to match issue fragment of 'drupal_add_css_inline'; modified upgrade routine to add the 'type' => 'inline' option to drupal_add_css.
Automatically closed -- issue fixed for 2 weeks with no activity.
Restoring issue tags, see #2125755: System messages removed all issue tags during D7 upgrade.
Comments
Comment #1
duellj commentedAttached upgrade routine changes drupal_set_html_head() calls that contain inline css to drupal_add_css().
Test function:
Comment #2
solotandem commentedImplemented in next dev release with following changes: changed test function name to match issue fragment of 'drupal_add_css_inline'; modified upgrade routine to add the 'type' => 'inline' option to drupal_add_css.