diff options
Diffstat (limited to 'modules/search/search.module')
-rw-r--r-- | modules/search/search.module | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/search/search.module b/modules/search/search.module index 27d5a59f8..255fc9839 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -180,11 +180,6 @@ function search_menu($may_cache) { } } } - else { - // Add the CSS for this module - // We put this in !$may_cache so it's only added once per request - drupal_add_css(drupal_get_path('module', 'search') .'/search.css'); - } return $items; } @@ -1080,6 +1075,9 @@ function theme_search_block_form($form) { * Perform a standard search on the given keys, and return the formatted results. */ function search_data($keys = NULL, $type = 'node') { + // Add CSS + drupal_add_css(drupal_get_path('module', 'search') .'/search.css'); + if (isset($keys)) { if (module_hook($type, 'search')) { $results = module_invoke($type, 'search', 'search', $keys); |