Since this is core, there's no good reason not to support it. Patch coming.

Comments

merlinofchaos’s picture

Status: Active » Needs review
StatusFileSize
new2.33 KB

Here's the patch.

Note that this is more or less a cut & paste hack job, so, uh, be careful.

hass’s picture

Status: Needs review » Needs work
+++ b/token_formatters.field.incundefined
@@ -130,7 +144,7 @@ function token_formatters_field_formatter_prepare_view($entity_type, $entities,
-    return $callback($entity_type, $entities, $field, $instances, $langcode, $items, $displays);
+    $callback($entity_type, $entities, $field, $instances, $langcode, $items, $displays);

return seems missing

dave reid’s picture

hook_field_formatter_prepare_view() alters $items by reference, so it's actually a valid change.

dave reid’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.