summaryrefslogtreecommitdiff
path: root/modules/search.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/search.module')
-rw-r--r--modules/search.module13
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/search.module b/modules/search.module
index 6d9b1e842..78bca2a88 100644
--- a/modules/search.module
+++ b/modules/search.module
@@ -42,6 +42,10 @@ function search_link($type) {
$links[] = l(t("search"), "search", array("title" => t("Search for older content.")));
}
+ if ($type == "system" && user_access("search content")) {
+ menu("search", t("search"), "search_page", 0, 1);
+ }
+
return $links;
}
@@ -68,9 +72,16 @@ function search_admin() {
$output = t("index invalidated") ."<br />\n";
search_cron();
$output .= t("index recreated") ."<br /><hr />\n";
- return $output;
+ print theme("header");
+ print $output;
+ print theme("footer");
}
}
+ else {
+ print theme("header");
+ print message_access();
+ print theme("footer");
+ }
}
/**