Commit f363c920 authored by Dries's avatar Dries

- Patch #838014 by comrade.salazar, dereine: search results will always have empty h2 tag.

parent 113b00e7
......@@ -116,9 +116,6 @@ function search_theme() {
'file' => 'search.pages.inc',
'template' => 'search-results',
),
'search_results_listing' => array(
'variables' => array('title' => NULL, 'content' => NULL),
),
);
}
......
......@@ -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 = '<h2 class="title">' . $variables['title'] . '</h2><div>' . $variables['content'] . '</div>';
return $output;
}
/**
* Process variables for search-results.tpl.php.
*
......
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