I am trying to create a custom formatter for a date field in my content type called "field_time" with an underscore. The date format for this field is ISO format. The Entity Token module shows me a token replacement called

[node:field-time:?]

I created a replacement token for my custom formatter as follows

<p>[node:field-time:value:custom:Y]</p>
<p>[node:field-time:value:custom:D]</p>
<p>[node:field-time:value:custom:j]</p>
<p>[node:field-time:value:custom:M]</p>

However, when I try to test it I get the following error

Fatal error: Call to a member function value() on a non-object in .........\Sites\mysitename\sites\all\modules\entity\entity_token.tokens.inc on line 297

I am using the following versions

DATE: 7.x-2.5
ENTITY API and ENTITY TOKEN: 7.x-1.0-rc3
TOKEN: 7.x-1.1
Custom Formatters: 7.x-2.0

Comments

bforchhammer’s picture

Status: Active » Closed (duplicate)
matmasr’s picture

bforchhammer Thank you for articulating the bug better than I could ever do ... I will be waiting to see how this get fixed.