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

deciphered’s picture

Sounds 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).

deciphered’s picture

Status: Active » Fixed

This has been committed to 7.x-2.x, thanks for the great suggestion.

Cheers,
Deciphered.

Status: Fixed » Closed (fixed)

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