Révision 3acd948f
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/modules/entityreference/plugins/selection/EntityReference_SelectionHandler_Generic.class.php | ||
---|---|---|
309 | 309 |
*/ |
310 | 310 |
public function getLabel($entity) { |
311 | 311 |
$target_type = $this->field['settings']['target_type']; |
312 |
return entity_access('view', $target_type, $entity) ? entity_label($target_type, $entity) : t('- Restricted access -');
|
|
312 |
return entity_access('view', $target_type, $entity) ? entity_label($target_type, $entity) : t(ENTITYREFERENCE_DENIED);
|
|
313 | 313 |
} |
314 | 314 |
|
315 | 315 |
/** |
Formats disponibles : Unified diff
Weekly update of contrib modules