From a0f3abf03571bcb90e853d5d463f0d3e3b5753a7 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 31 Dec 2009 08:26:59 +0000 Subject: - Patch #661494 by yched: fixed direct calls to node_view() do not trigger f_a_prepare_view(). --- modules/taxonomy/taxonomy.module | 6 ------ 1 file changed, 6 deletions(-) (limited to 'modules/taxonomy/taxonomy.module') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 5c63fc057..68bc50687 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -1079,12 +1079,6 @@ function taxonomy_field_formatter_view($object_type, $object, $field, $instance, switch ($display['type']) { case 'taxonomy_term_link': foreach ($items as $delta => $item) { - // @todo Remove this when "node_view() does not call - // field_attach_prepare_view()" bug is fixed. - // See http://drupal.org/node/493314. - if (!isset($item['taxonomy_term'])) { - $item['taxonomy_term'] = taxonomy_term_load($item['tid']); - } $term = $item['taxonomy_term']; $element[$delta] = array( '#type' => 'link', -- cgit v1.2.3