summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-03-14 18:30:38 +0000
committerDries Buytaert <dries@buytaert.net>2007-03-14 18:30:38 +0000
commitd9647661ff9ef68a4c7b75424f1835db9fcfc3b5 (patch)
tree501662025a80cffea75a2193bcd9b73dd91e9f5e
parentc06275f26915d5f52fbce1a57201d1796a4214c6 (diff)
downloadbrdo-d9647661ff9ef68a4c7b75424f1835db9fcfc3b5.tar.gz
brdo-d9647661ff9ef68a4c7b75424f1835db9fcfc3b5.tar.bz2
- Patch #125804 by tostinni: search.css not always properly included.
-rw-r--r--modules/search/search.module6
1 files changed, 4 insertions, 2 deletions
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')) {