Index: modules/taxonomy/taxonomy.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/taxonomy/taxonomy.module,v
retrieving revision 1.414
diff -u -r1.414 taxonomy.module
--- modules/taxonomy/taxonomy.module	27 Jan 2008 17:55:15 -0000	1.414
+++ modules/taxonomy/taxonomy.module	4 Feb 2008 01:52:31 -0000
@@ -34,6 +34,35 @@
 }
 
 /**
+ * Implementation of hook_search
+ */
+function taxonomy_search($op = 'search', $keys = NULL) {
+  $results = NULL;
+  if (user_access('search content')) {
+    switch($op) {
+      case 'name':
+        $results = t('Tags');
+        break;
+      case 'search':
+        $keys = explode(' ', $keys);
+        foreach ($keys as $key) {
+          $matches = taxonomy_get_term_by_name($key);
+  
+          foreach ($matches as $match) {
+            $results[] = array (
+              'link' => url('taxonomy/term/' . $match->tid),
+              'title' => $match->name,
+              'snippet' => $match->description,
+            );
+          }
+        }
+        break;
+    }
+  }
+  return $results;
+}
+
+/**
  * Implementation of hook_link().
  *
  * This hook is extended with $type = 'taxonomy terms' to allow themes to
