Commit d9647661 authored by Dries's avatar Dries

- Patch #125804 by tostinni: search.css not always properly included.

parent c06275f2
......@@ -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')) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment