summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-01-29 12:14:44 +0000
committerDries Buytaert <dries@buytaert.net>2010-01-29 12:14:44 +0000
commit7b7bd71132f2d066265f7a9b7cc553818b86e5a9 (patch)
treeee1ce21939d2585095c2ca78c2ef2f42b4bc756e /modules/taxonomy/taxonomy.module
parent68d000561db973c54f4289bce86c55de718543a9 (diff)
downloadbrdo-7b7bd71132f2d066265f7a9b7cc553818b86e5a9.tar.gz
brdo-7b7bd71132f2d066265f7a9b7cc553818b86e5a9.tar.bz2
- Patch #693362 by catch, Dave Reid: taxonomy_form_all() is dangerous and ?q=admin/content can be a performance killer.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module18
1 files changed, 0 insertions, 18 deletions
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
@@ -573,24 +573,6 @@ 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