Issue #1786284 by fotuzlab: Unnecessary line in taxonomy_term_build_content().

8.0.x
Dries 2012-09-18 15:38:28 +02:00
parent ce9a30b525
commit 18bd0591c3
1 changed files with 1 additions and 2 deletions

View File

@ -642,8 +642,7 @@ function taxonomy_term_build_content(Term $term, $view_mode = 'full', $langcode
$context = array('langcode' => $langcode);
drupal_alter('entity_view_mode', $view_mode, $term, $context);
// Try to add in the core taxonomy pieces like description and nodes
$type = 'taxonomy_term';
// Try to add in the core taxonomy pieces like description and nodes.
$settings = field_view_mode_settings($term->entityType(), $term->bundle());
$fields = field_extra_fields_get_display($term->entityType(), $term->bundle(), $view_mode);
if (!empty($term->description) && isset($fields['description']) && $fields['description']['visible']) {