summaryrefslogtreecommitdiff
path: root/modules/search/search.pages.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/search/search.pages.inc')
-rw-r--r--modules/search/search.pages.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/search/search.pages.inc b/modules/search/search.pages.inc
index a8d7ce8fb..424619e23 100644
--- a/modules/search/search.pages.inc
+++ b/modules/search/search.pages.inc
@@ -40,10 +40,10 @@ function search_view($type = 'node') {
}
// Construct the search form.
- $output = drupal_render(drupal_get_form('search_form', NULL, $keys, $type));
- $output .= $results;
+ $build['search_form'] = drupal_get_form('search_form', NULL, $keys, $type);
+ $build['search_results'] = array('#markup' => $results);
- return $output;
+ return $build;
}
return drupal_get_form('search_form', NULL, empty($keys) ? '' : $keys, $type);