function example_drupal_add_css_inline in Coder 7
Same name and namespace in other branches
- 7.2 coder_upgrade/tests/old/samples/example.module \example_drupal_add_css_inline()
File
- coder_upgrade/
tests/ old/ samples/ example.module, line 1299
Code
function example_drupal_add_css_inline() {
$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>
');
}