Index: modules/taxonomy/taxonomy.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/taxonomy/taxonomy.module,v
retrieving revision 1.567
diff -u -p -r1.567 taxonomy.module
--- modules/taxonomy/taxonomy.module	15 Jan 2010 10:49:46 -0000	1.567
+++ modules/taxonomy/taxonomy.module	23 Jan 2010 14:48:05 -0000
@@ -573,6 +573,24 @@ function taxonomy_terms_static_reset() {
 }
 
 /**
+ * Generate a set of options for selecting a term from all vocabularies.
+ */
+function taxonomy_form_all() {
+  $vocabularies = taxonomy_get_vocabularies();
+  $options = array();
+  foreach ($vocabularies as $vid => $vocabulary) {
+    $tree = taxonomy_get_tree($vid);
+    if ($tree && (count($tree) > 0)) {
+      $options[$vocabulary->name] = array();
+      foreach ($tree as $term) {
+        $options[$vocabulary->name][$term->tid] = str_repeat('-', $term->depth) . $term->name;
+      }
+    }
+  }
+  return $options;
+}
+
+/**
  * Return an array of all vocabulary objects.
  *
  * @param $type
