From 4b0b2d02eecaa27e3162a0fad9d31bb08f4df53b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 15 Feb 2004 20:09:46 +0000 Subject: - Patch by Steven: removed redundant permission checks. These are no longer required thanks to the new 404 handling. --- modules/search/search.module | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'modules/search/search.module') diff --git a/modules/search/search.module b/modules/search/search.module index 8bd9ad261..222868630 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -58,27 +58,6 @@ function search_settings() { return $output; } -/** - * search engine administration actions - */ -function search_admin() { - $op = $_POST["op"]; - - // Only allow people with sufficient access. - if (user_access("administer search")) { - if ($op == "reindex") { - search_invalidate(); - $output = t("index invalidated") ."
\n"; - search_cron(); - $output .= t("index recreated") ."

\n"; - print theme("page", $output); - } - } - else { - print theme("page", message_access()); - } -} - /** * perform a regularly run action across all modules that have the * module_update_index function in them. -- cgit v1.2.3