Active
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Entity tokens
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2011 at 11:20 UTC
Updated:
27 Sep 2012 at 10:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
Island Usurper commentedHere 'tis.
Comment #2
fagoEntity token only provides tokens if there is none yet, so if you provide [node:sell-price] it shouldn't. Still, I think that option makes sense, but we need to fix the description to reflect the actual entity-tokens behaviour (it only provides tokens if there is none yet).
Maybe, also we should call the flag "entity token" => FALSE, as it doesn't disable tokens generally.
Unrelated, but tokens like [node:product:sell-price:raw] are deprecated in D7 - we have $options['sanitize'] for that now.
Comment #3
Island Usurper commentedMaybe we should call it "numeric" instead of "raw", as opposed to formatted. *shrug*
Updated patch with better documentation and flag name change.
Comment #4
fagoThanks, I tried to further improve the description. Makes sense?
Comment #5
Island Usurper commentedYeah, looks good to me. Thanks.
Comment #6
fagothanks, committed.
Comment #8
longwaveThis feature seems to have been removed as of this commit: http://drupalcode.org/project/entity.git/commitdiff/867533d - grepping the code for "entity token" only returns two comments now.
The same commit also causes an array_flip() error in Ubercart when trying to generate list<uc_order_product> tokens. I attempted to use 'entity token' => FALSE to avoid this, but as the code no longer exists this didn't work! (see #1388984: array_flip() error when rendering invoices using Entity 7.x-1.x-dev)
Comment #9
fagoouch.
Comment #10
d.novikov commentedUp.
Is this commited to the latest dev?