summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-09-05 02:21:38 +0000
committerDries Buytaert <dries@buytaert.net>2010-09-05 02:21:38 +0000
commitfb9c1df0b942df39115a9130dfa76e2b3fd33217 (patch)
tree7dce29a2f9eebf607d9106fa2f1aed6fbe0d8b61 /includes/theme.inc
parent8e51c3b2a5796737583b59a4970812ff66755b38 (diff)
downloadbrdo-fb9c1df0b942df39115a9130dfa76e2b3fd33217.tar.gz
brdo-fb9c1df0b942df39115a9130dfa76e2b3fd33217.tar.bz2
- Patch #328357 by bleen18, sun, skilip, alanburke, jenlampton, manarth, fgm, tstoeckler: allow module .info files to add CSS/JS.
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index adbffbe92..9a2cc0fe0 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -604,9 +604,7 @@ function list_themes($refresh = FALSE) {
}
}
foreach ($theme->info['scripts'] as $script => $path) {
- if (file_exists($path)) {
- $theme->scripts[$script] = $path;
- }
+ $theme->scripts[$script] = $path;
}
if (isset($theme->info['engine'])) {
$theme->engine = $theme->info['engine'];
@@ -2274,6 +2272,7 @@ function template_preprocess_page(&$variables) {
$variables['theme_hook_suggestions'] = $suggestions;
}
}
+
/**
* Process variables for html.tpl.php
*