Commit 18bd0591 authored by Dries's avatar Dries
Browse files

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

parent ce9a30b5
...@@ -642,8 +642,7 @@ function taxonomy_term_build_content(Term $term, $view_mode = 'full', $langcode ...@@ -642,8 +642,7 @@ function taxonomy_term_build_content(Term $term, $view_mode = 'full', $langcode
$context = array('langcode' => $langcode); $context = array('langcode' => $langcode);
drupal_alter('entity_view_mode', $view_mode, $term, $context); drupal_alter('entity_view_mode', $view_mode, $term, $context);
// Try to add in the core taxonomy pieces like description and nodes // Try to add in the core taxonomy pieces like description and nodes.
$type = 'taxonomy_term';
$settings = field_view_mode_settings($term->entityType(), $term->bundle()); $settings = field_view_mode_settings($term->entityType(), $term->bundle());
$fields = field_extra_fields_get_display($term->entityType(), $term->bundle(), $view_mode); $fields = field_extra_fields_get_display($term->entityType(), $term->bundle(), $view_mode);
if (!empty($term->description) && isset($fields['description']) && $fields['description']['visible']) { if (!empty($term->description) && isset($fields['description']) && $fields['description']['visible']) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment