Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
a0152d5c
Commit
a0152d5c
authored
Jan 03, 2014
by
Nathaniel Catchpole
Browse files
Issue
#2160589
by vijaycs85: Remove drupal_add_js() from theme.inc.
parent
52eb9366
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/includes/theme.inc
View file @
a0152d5c
...
...
@@ -237,9 +237,15 @@ function _drupal_theme_initialize($theme, $base_theme = array()) {
}
// Add scripts used by this theme.
$js
=
array
();
foreach
(
$final_scripts
as
$script
)
{
drupal_add_js
(
$script
,
array
(
'group'
=>
JS_THEME
,
'every_page'
=>
TRUE
));
$js
[
'#attached'
][
'js'
][]
=
array
(
'data'
=>
$script
,
'group'
=>
JS_THEME
,
'every_page'
=>
TRUE
,
);
}
drupal_render
(
$js
);
$theme_engine
=
NULL
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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