diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-07-30 02:47:28 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-07-30 02:47:28 +0000 |
commit | 37c3c7ec7aff7fad84b3839ac3fa5437b7b256b2 (patch) | |
tree | 97fe1cd55f6501efaaa21129abd043fc94242d8e /modules/search | |
parent | 4f2d69698c849e4e20ad5ae92b0652654a88f840 (diff) | |
download | brdo-37c3c7ec7aff7fad84b3839ac3fa5437b7b256b2.tar.gz brdo-37c3c7ec7aff7fad84b3839ac3fa5437b7b256b2.tar.bz2 |
- Patch #769226 by Owen Barton, alanburke, sun: fixed JS/CSS preprocess should default to FALSE.
Diffstat (limited to 'modules/search')
-rw-r--r-- | modules/search/search.module | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/search/search.module b/modules/search/search.module index 2ab3a4210..2138562a6 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -98,6 +98,13 @@ function search_help($path, $arg) { } /** + * Implements hook_init(). + */ +function search_init() { + drupal_add_css(drupal_get_path('module', 'search') . '/search.css', array('preprocess' => TRUE)); +} + +/** * Implements hook_theme(). */ function search_theme() { @@ -875,9 +882,6 @@ function search_get_keys() { * An HTML string containing the search form. */ function search_form($form, &$form_state, $action = '', $keys = '', $type = NULL, $prompt = NULL) { - // Add CSS - drupal_add_css(drupal_get_path('module', 'search') . '/search.css', array('preprocess' => FALSE)); - if (!$action) { $action = 'search/' . $type; } |