summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-11-27 09:26:46 +0000
committerDries Buytaert <dries@buytaert.net>2005-11-27 09:26:46 +0000
commit679649baaa8f9c9b05af9dd3ca780553d155ef06 (patch)
treed96c116defb2c67259383ce27ed6d321e45dca26 /modules
parent229fa7dea819238d8906cb94ddcf6168effcea19 (diff)
downloadbrdo-679649baaa8f9c9b05af9dd3ca780553d155ef06.tar.gz
brdo-679649baaa8f9c9b05af9dd3ca780553d155ef06.tar.bz2
- Patch #39003 by Jaza: remove taxnomy_form_all().
Diffstat (limited to 'modules')
-rw-r--r--modules/taxonomy.module20
-rw-r--r--modules/taxonomy/taxonomy.module20
2 files changed, 0 insertions, 40 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index 701645957..1f1ac3048 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -452,26 +452,6 @@ function taxonomy_form($vid, $value = 0, $help = NULL, $name = 'taxonomy') {
}
/**
- * Generate a set of options for selecting a term from all vocabularies. Can be
- * passed to form_select.
- */
-function taxonomy_form_all($free_tags = 0) {
- $vocabularies = taxonomy_get_vocabularies();
- $options = array();
- foreach ($vocabularies as $vid => $vocabulary) {
- if ($vocabulary->tags && !$free_tags) { continue; }
- $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.
*
* @param $type
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 701645957..1f1ac3048 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -452,26 +452,6 @@ function taxonomy_form($vid, $value = 0, $help = NULL, $name = 'taxonomy') {
}
/**
- * Generate a set of options for selecting a term from all vocabularies. Can be
- * passed to form_select.
- */
-function taxonomy_form_all($free_tags = 0) {
- $vocabularies = taxonomy_get_vocabularies();
- $options = array();
- foreach ($vocabularies as $vid => $vocabulary) {
- if ($vocabulary->tags && !$free_tags) { continue; }
- $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.
*
* @param $type