Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f392d38e
Commit
f392d38e
authored
Dec 12, 2013
by
catch
Browse files
Issue
#2096591
by mr.baileys, vijaycs85, Wim Leers: Remove drupal_add_css() from the theme system.
parent
35632544
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/includes/theme.inc
View file @
f392d38e
...
...
@@ -210,12 +210,18 @@ function _drupal_theme_initialize($theme, $base_theme = array()) {
}
}
// And now add the stylesheets properly
// And now add the stylesheets properly.
$css
=
array
();
foreach
(
$final_stylesheets
as
$media
=>
$stylesheets
)
{
foreach
(
$stylesheets
as
$stylesheet
)
{
drupal_add_css
(
$stylesheet
,
array
(
'group'
=>
CSS_AGGREGATE_THEME
,
'every_page'
=>
TRUE
,
'media'
=>
$media
));
$css
[
'#attached'
][
'css'
][
$stylesheet
]
=
array
(
'group'
=>
CSS_AGGREGATE_THEME
,
'every_page'
=>
TRUE
,
'media'
=>
$media
);
}
}
drupal_render
(
$css
);
// Do basically the same as the above for scripts
$final_scripts
=
array
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment