Comments

duellj’s picture

Status: Active » Needs review
StatusFileSize
new1.04 KB

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>
  ');
}
solotandem’s picture

Assigned: Unassigned » solotandem
Status: Needs review » Fixed

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.

Status: Fixed » Closed (fixed)
Issue tags: -Intermediate

Automatically closed -- issue fixed for 2 weeks with no activity.