From d9647661ff9ef68a4c7b75424f1835db9fcfc3b5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 14 Mar 2007 18:30:38 +0000 Subject: - Patch #125804 by tostinni: search.css not always properly included. --- modules/search/search.module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/search/search.module b/modules/search/search.module index c2299490e..37786dc66 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -980,6 +980,10 @@ function search_view($type = 'node') { * An HTML string containing the search form. */ function search_form($action = '', $keys = '', $type = NULL, $prompt = NULL) { + + // Add CSS + drupal_add_css(drupal_get_path('module', 'search') .'/search.css', 'module', 'all', FALSE); + if (!$action) { $action = url('search/'. $type); } @@ -1078,8 +1082,6 @@ 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', 'module', 'all', FALSE); if (isset($keys)) { if (module_hook($type, 'search')) { -- cgit v1.2.3