From 8ab70ac18a90c663d3f4d856c36c90635ca118a6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 21 May 2010 20:27:45 +0000 Subject: - Patch #805228 by catch: unnecessary query in taxonomy_field_extra_fields(). --- modules/taxonomy/taxonomy.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/taxonomy') 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'), -- cgit v1.2.3