From a1579a3aee36faee9bd78111a3de0997e59b8f2e Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Mon, 17 Jan 2005 18:56:11 +0000 Subject: - Reversing bad commit, sorry everyone. --- modules/taxonomy/taxonomy.module | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'modules/taxonomy/taxonomy.module') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index c30032355..caa3fa1fe 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -388,25 +388,6 @@ function taxonomy_form($vid, $value = 0, $help = NULL, $name = 'taxonomy') { return _taxonomy_term_select($vocabulary->name, $name, $value, $vid, $help, intval($vocabulary->multiple), $blank); } -/** -* Generate a set of options for selecting a term from all vocabularies. Can be -* passed to form_select. -*/ -function taxonomy_form_all($value = 0, $help = NULL, $name = 'taxonomy') { - $vocabularies = taxonomy_get_vocabularies(); - $options = array(); - foreach ($vocabularies as $vid => $vocabulary) { - $tree = taxonomy_get_tree($vid); - $options[$vocabulary->name] = array(); - if ($tree) { - foreach ($tree as $term) { - $options[$vocabulary->name][$term->tid] = _taxonomy_depth($term->depth, '-') . $term->name; - } - } - } - return $options; -} - /** * Return an array of all vocabulary objects. * -- cgit v1.2.3