diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-05-18 01:00:28 -0500 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-05-18 01:00:28 -0500 |
commit | 267b9c435c5d7266f4ce674b84d95bfe1f5a0920 (patch) | |
tree | d6868bb93f70d53451c6813ce8080153725839e8 /includes | |
parent | ff3bf28a038edd72b7d67bd9f6476c369e49140e (diff) | |
download | brdo-267b9c435c5d7266f4ce674b84d95bfe1f5a0920.tar.gz brdo-267b9c435c5d7266f4ce674b84d95bfe1f5a0920.tar.bz2 |
Issue #1096446 by plach: Fixed entity_label() is not passing along the () parameter.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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']}; |