summaryrefslogtreecommitdiff
path: root/modules/search
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-06-30 15:47:50 +0000
committerDries Buytaert <dries@buytaert.net>2010-06-30 15:47:50 +0000
commitf363c9209db6d97bf702516876b13964b2c84179 (patch)
tree85326c10e8e40276117483f45c4a6e9f0dee1401 /modules/search
parent113b00e7f074c38fdde02b04cc77b994dad8f7bc (diff)
downloadbrdo-f363c9209db6d97bf702516876b13964b2c84179.tar.gz
brdo-f363c9209db6d97bf702516876b13964b2c84179.tar.bz2
- Patch #838014 by comrade.salazar, dereine: search results will always have empty h2 tag.
Diffstat (limited to 'modules/search')
-rw-r--r--modules/search/search.module3
-rw-r--r--modules/search/search.pages.inc20
2 files changed, 1 insertions, 22 deletions
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;
}
@@ -47,21 +44,6 @@ function search_view($type = 'node') {
}
/**
- * 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 = '<h2 class="title">' . $variables['title'] . '</h2><div>' . $variables['content'] . '</div>';
- return $output;
-}
-
-/**
* Process variables for search-results.tpl.php.
*
* The $variables array contains the following arguments: