summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc9
1 files changed, 2 insertions, 7 deletions
diff --git a/includes/common.inc b/includes/common.inc
index e7a7ef026..8d6cdcc41 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -664,13 +664,8 @@ function search_data($keys = NULL) {
if (isset($keys)) {
foreach (module_list() as $name) {
if (module_hook($name, "search") && (!$edit["type"] || $edit["type"][$name]) && ($result = module_invoke($name, "search", $keys))) {
- if ($name == "node" || $name == "comment") {
- $output .= "<p><strong>". t("Matching %names ranked in order of relevance:", array("%name" => $name)) ."</strong></p>";
- }
- else {
- $output .= "<p><strong>". t("Matching {$name}s") .":</strong></p>";
- }
- foreach ($result as $entry) {
+ $output .= "<h2>$result[0]</h2>";
+ foreach ($result[1] as $entry) {
$output .= search_item($entry, $name);
}
}