From 267b9c435c5d7266f4ce674b84d95bfe1f5a0920 Mon Sep 17 00:00:00 2001 From: webchick Date: Wed, 18 May 2011 01:00:28 -0500 Subject: Issue #1096446 by plach: Fixed entity_label() is not passing along the () parameter. --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index cb851d4b9..5dadb4d16 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -7595,7 +7595,7 @@ function entity_label($entity_type, $entity) { $label = FALSE; $info = entity_get_info($entity_type); if (isset($info['label callback']) && function_exists($info['label callback'])) { - $label = $info['label callback']($entity); + $label = $info['label callback']($entity, $entity_type); } elseif (!empty($info['entity keys']['label']) && isset($entity->{$info['entity keys']['label']})) { $label = $entity->{$info['entity keys']['label']}; -- cgit v1.2.3