Hi all,

I'd like to write a formatter that I could use in Views with Token.
I'd like to use available tokens from fields I set in my Views.

I have 2 problems :
* token_replace() doesn't replace tokens from view fields but only global tokens
* token helper like token_tree() always show global tokens but not local ones from view fields

Where could I find informations to resolve that ?

Thx for your help
Best regards

Comments

Deciphered’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

View fields and the fields attached to entities that you see in token tree are completely different things.

You can write a formatter for a standard Drupal field that can be used within a view, but that formatter is not provided with the View as context, only with entity and related information.