From f363c9209db6d97bf702516876b13964b2c84179 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 30 Jun 2010 15:47:50 +0000 Subject: - Patch #838014 by comrade.salazar, dereine: search results will always have empty h2 tag. --- modules/search/search.module | 3 --- modules/search/search.pages.inc | 20 +------------------- 2 files changed, 1 insertion(+), 22 deletions(-) (limited to 'modules/search') diff --git a/modules/search/search.module b/modules/search/search.module index 95fe5ef10..334e8c14c 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -116,9 +116,6 @@ function search_theme() { 'file' => 'search.pages.inc', 'template' => 'search-results', ), - 'search_results_listing' => array( - 'variables' => array('title' => NULL, 'content' => NULL), - ), ); } diff --git a/modules/search/search.pages.inc b/modules/search/search.pages.inc index 17245cef9..646431b43 100644 --- a/modules/search/search.pages.inc +++ b/modules/search/search.pages.inc @@ -34,10 +34,7 @@ function search_view($type = 'node') { // Construct the search form. $build['search_form'] = drupal_get_form('search_form', NULL, $keys, $type); - $build['search_results'] = array( - '#theme' => 'search_results_listing', - '#content' => $results, - ); + $build['search_results'] = array('#markup' => $results); return $build; } @@ -46,21 +43,6 @@ function search_view($type = 'node') { return drupal_get_form('search_form', NULL, empty($keys) ? '' : $keys, $type); } -/** - * Returns HTML for a listing of search results. - * - * @param $variables - * An associative array containing: - * - title: The subject of the listing. - * - content: The content of the listing. - * - * @ingroup themeable - */ -function theme_search_results_listing($variables) { - $output = '

' . $variables['title'] . '

' . $variables['content'] . '
'; - return $output; -} - /** * Process variables for search-results.tpl.php. * -- cgit v1.2.3