Closed (fixed)
Project:
Custom Formatters
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Dec 2011 at 23:29 UTC
Updated:
17 Feb 2012 at 05:00 UTC
It would be nice if I could think of the eval'd PHP for the custom formatter as analogous to the code I would otherwise implement in hook_field_formatter_view(). However, the hook returns a render array, whereas you're supposed to return an output string in the custom formatter interface. It would be nice if custom_formatters_engine_php_render() could process either a returned string or a render array.
Comments
Comment #1
decipheredSounds like a reasonable request, I'll look into it as soon as I get a chance (which will likely be around February with my current schedule).
Comment #2
decipheredThis has been committed to 7.x-2.x, thanks for the great suggestion.
Cheers,
Deciphered.