- Patch #805228 by catch: unnecessary query in taxonomy_field_extra_fields().

merge-requests/26/head
Dries Buytaert 2010-05-21 20:27:45 +00:00
parent 5af292f76b
commit 8ab70ac18a
1 changed files with 3 additions and 3 deletions

View File

@ -143,9 +143,9 @@ function taxonomy_term_uri($term) {
*/ */
function taxonomy_field_extra_fields() { function taxonomy_field_extra_fields() {
$return = array(); $return = array();
$info = entity_get_info('taxonomy_term');
foreach (taxonomy_vocabulary_get_names() as $machine_name => $vocabulary) { foreach (array_keys($info['bundles']) as $bundle) {
$return['taxonomy_term'][$machine_name] = array( $return['taxonomy_term'][$bundle] = array(
'name' => array( 'name' => array(
'label' => t('Name'), 'label' => t('Name'),
'description' => t('Term name textfield'), 'description' => t('Term name textfield'),