From 76a3a1f41fdbc7e7e562a63f68eb7642994f0d0c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 23 Jan 2010 16:41:34 +0000 Subject: - Patch #693362 by catch: taxonomy_form_all() is dead code, and dangerous. --- modules/taxonomy/taxonomy.module | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'modules/taxonomy') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index cad3049f8..8e70c5a84 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -572,24 +572,6 @@ function taxonomy_terms_static_reset() { entity_get_controller('taxonomy_term')->resetCache(); } -/** - * 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. * -- cgit v1.2.3