diff --git a/core/modules/field/field.views.inc b/core/modules/field/field.views.inc index d6d9e97..ea91d0c 100644 --- a/core/modules/field/field.views.inc +++ b/core/modules/field/field.views.inc @@ -177,8 +177,7 @@ function field_views_field_default_views_data(FieldInterface $field) { ); } - // Override Node to Content. - $group_name = ($entity_info['label'] == t('Node')) ? t('Content') : $entity_info['label']; + $group_name = $entity_info['label']; // Get the list of bundles the field appears in. $bundles_names = $field->getBundles(); // Build the list of additional fields to add to queries. diff --git a/core/modules/file/file.views.inc b/core/modules/file/file.views.inc index 501ce7c..6ae04af 100644 --- a/core/modules/file/file.views.inc +++ b/core/modules/file/file.views.inc @@ -490,11 +490,10 @@ function file_field_views_data_views_data_alter(array &$data, FieldInterface $fi $pseudo_field_name = 'reverse_' . $field['field_name'] . '_' . $entity_type; list($label,) = field_views_field_label($entity_type, $field['field_name']); - $entity_label = ($entity_info['label'] == t('Node')) ? t('Content') : $entity_info['label']; $data['file_managed'][$pseudo_field_name]['relationship'] = array( - 'title' => t('@entity using @field', array('@entity' => $entity_label, '@field' => $label)), - 'help' => t('Relate each @entity with a @field set to the file.', array('@entity' => $entity_label, '@field' => $label)), + 'title' => t('@entity using @field', array('@entity' => $entity_info['label'], '@field' => $label)), + 'help' => t('Relate each @entity with a @field set to the file.', array('@entity' => $entity_info['label'], '@field' => $label)), 'id' => 'entity_reverse', 'field_name' => $field['field_name'], 'entity_type' => $field['entity_type'], diff --git a/core/modules/taxonomy/taxonomy.views.inc b/core/modules/taxonomy/taxonomy.views.inc index c33b697..cc062b2 100644 --- a/core/modules/taxonomy/taxonomy.views.inc +++ b/core/modules/taxonomy/taxonomy.views.inc @@ -440,11 +440,10 @@ function taxonomy_field_views_data_views_data_alter(array &$data, FieldInterface $pseudo_field_name = 'reverse_' . $field['field_name'] . '_' . $entity_type; list($label,) = field_views_field_label($entity_type, $field['field_name']); - $entity_label = ($entity_info['label'] == t('Node')) ? t('Content') : $entity_info['label']; $data['taxonomy_term_data'][$pseudo_field_name]['relationship'] = array( - 'title' => t('@entity using @field', array('@entity' => $entity_label, '@field' => $label)), - 'help' => t('Relate each @entity with a @field set to the term.', array('@entity' => $entity_label, '@field' => $label)), + 'title' => t('@entity using @field', array('@entity' => $entity_info['label'], '@field' => $label)), + 'help' => t('Relate each @entity with a @field set to the term.', array('@entity' => $entity_info['label'], '@field' => $label)), 'id' => 'entity_reverse', 'field_name' => $field['field_name'], 'entity_type' => $field['entity_type'],