summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-05-21 20:27:45 +0000
committerDries Buytaert <dries@buytaert.net>2010-05-21 20:27:45 +0000
commit8ab70ac18a90c663d3f4d856c36c90635ca118a6 (patch)
treefd7debd6f6f141d58c101bfd07245901fa917bf5 /modules
parent5af292f76b27ffa7d6d571ddf6b663ebf0a92252 (diff)
downloadbrdo-8ab70ac18a90c663d3f4d856c36c90635ca118a6.tar.gz
brdo-8ab70ac18a90c663d3f4d856c36c90635ca118a6.tar.bz2
- Patch #805228 by catch: unnecessary query in taxonomy_field_extra_fields().
Diffstat (limited to 'modules')
-rw-r--r--modules/taxonomy/taxonomy.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 5a184c337..ab98ebdda 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -143,9 +143,9 @@ function taxonomy_term_uri($term) {
*/
function taxonomy_field_extra_fields() {
$return = array();
-
- foreach (taxonomy_vocabulary_get_names() as $machine_name => $vocabulary) {
- $return['taxonomy_term'][$machine_name] = array(
+ $info = entity_get_info('taxonomy_term');
+ foreach (array_keys($info['bundles']) as $bundle) {
+ $return['taxonomy_term'][$bundle] = array(
'name' => array(
'label' => t('Name'),
'description' => t('Term name textfield'),