Skip to content
Snippets Groups Projects
Commit 2e8d384c authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Rollback of patch #693362.

parent 981bd126
No related branches found
No related tags found
No related merge requests found
......@@ -572,6 +572,24 @@ 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.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment