diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-10-03 20:57:01 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-10-03 20:57:01 +0000 |
commit | 7a9bc86bd2f0ba3ba343e014a2e4c7f99d7f0946 (patch) | |
tree | be6bef3f6ad0aba1cb9e942f85eaa325e97d7c1a /modules/node/node.module | |
parent | f7e9bab197205e6fa0d2e220902f5eb6573ac1cb (diff) | |
download | brdo-7a9bc86bd2f0ba3ba343e014a2e4c7f99d7f0946.tar.gz brdo-7a9bc86bd2f0ba3ba343e014a2e4c7f99d7f0946.tar.bz2 |
- Improved search architecture derived from Axel's new search patches.
(There is room for improvement so let's go from these ... and build
on them.)
- Removed some $status's by calls to node_status().
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index da96c53d7..0b7923165 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -274,21 +274,6 @@ function node_admin_save($edit) { } } -function node_module_find() { - - foreach (module_list() as $name) { - if (module_hook($name, "user")) { - $options .= "<OPTION VALUE=\"$name\">$name</OPTION>\n"; - } - } - - $output .= " <input size=\"50\" value=\"". check_form($keys) ."\" name=\"keys\" type=\"text\">\n"; - $output .= " <select name=\"type\">$options</select>\n"; - $output .= " <input type=\"submit\" value=\"Search\">\n"; - - return form($output); -} - function node_edit($node) { $output .= form_item("Title", $node->title); $output .= form_item("Operations", implode("<br />", node_links($node->nid, $node->type))); @@ -318,8 +303,7 @@ function node_admin() { print node_help(); break; case "search": - print node_module_find($id); - print search_data($keys, $type); + print search_type($type, "admin.php?mod=node&op=search", $keys, 1); break; case "status": print node_edit_status($id); |