Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f363c920
Commit
f363c920
authored
Jun 30, 2010
by
Dries
Browse files
- Patch
#838014
by comrade.salazar, dereine: search results will always have empty h2 tag.
parent
113b00e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/search/search.module
View file @
f363c920
...
...
@@ -116,9 +116,6 @@ function search_theme() {
'file'
=>
'search.pages.inc'
,
'template'
=>
'search-results'
,
),
'search_results_listing'
=>
array
(
'variables'
=>
array
(
'title'
=>
NULL
,
'content'
=>
NULL
),
),
);
}
...
...
modules/search/search.pages.inc
View file @
f363c920
...
...
@@ -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.
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment