Commit 034d5235 authored by catch's avatar catch

Issue #2099347 by ruloweb: Clean up list function usage.

parent 7e532bf2
......@@ -490,7 +490,7 @@ function file_field_views_data_views_data_alter(array &$data, FieldInterface $fi
$field_name = $field->getFieldName();
$pseudo_field_name = 'reverse_' . $field_name . '_' . $entity_type;
list($label,) = field_views_field_label($entity_type, $field_name);
list($label) = field_views_field_label($entity_type, $field_name);
$data['file_managed'][$pseudo_field_name]['relationship'] = array(
'title' => t('@entity using @field', array('@entity' => $entity_info['label'], '@field' => $label)),
......
......@@ -44,7 +44,7 @@ function image_field_views_data_views_data_alter(array &$data, FieldInterface $f
$entity_info = entity_get_info($entity_type);
$pseudo_field_name = 'reverse_' . $field_name . '_' . $entity_type;
list($label,) = field_views_field_label($entity_type, $field_name);
list($label) = field_views_field_label($entity_type, $field_name);
$data['file_managed'][$pseudo_field_name]['relationship'] = array(
'title' => t('@entity using @field', array('@entity' => $entity_info['label'], '@field' => $label)),
......
......@@ -442,7 +442,7 @@ function taxonomy_field_views_data_views_data_alter(array &$data, FieldInterface
$entity_info = entity_get_info($entity_type);
$pseudo_field_name = 'reverse_' . $field_name . '_' . $entity_type;
list($label,) = field_views_field_label($entity_type, $field_name);
list($label) = field_views_field_label($entity_type, $field_name);
$data['taxonomy_term_data'][$pseudo_field_name]['relationship'] = array(
'title' => t('@entity using @field', array('@entity' => $entity_info['label'], '@field' => $label)),
......
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