Closed (outdated)
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Entity tokens
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 May 2012 at 08:32 UTC
Updated:
19 Jan 2019 at 22:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dave reidWe also duplicate the [current-date:*] (if Token module is enabled) or [date:*] tokens which default to the current date under [site:current-date:*].
I would consider token duplication a bug. Working on a patch.
Comment #2
dave reidPatch that re-adds using 'token' => FALSE in hook_entity_property_info() to disable tokens for that property since I thought that functionality had existed at some point and currently there's no way to disable tokens for specific properties.
Comment #3
dave reidGrrr, wrong patch.
Comment #4
dave reidComment #6
dave reidAdjusted tests.
Comment #7
quicksketchThanks Dave Reid! I have to ask, why 'token' => FALSE? Using the term "token" seems awfully vague, but perhaps it makes sense. I'd think something like 'nestable' => FALSE would make sense, but it sounds like 'token' would have broader implications.
Comment #8
dave reidBecause all it does is simply disable that property from being available as a token? So really it only applies to being used in entity_token.
Comment #9
quicksketchOh, I didn't see where this addition was placed. Makes sense to me.
Comment #10
fagohm, what is with the people already using this tokens? They would just stop working for them? :/
Maybe, we can find a way to let the tokens work but remove them from the token ui? Would just not adding them to token-info work/make sense?
Comment #11
dave reidHonestly, it would mean they stop working. I can't see a way to disable them in the UI but allow the token replacement to work. Which is why it's unfortunate that they were added in the first place.
Comment #12
damien tournoud commentedMaybe it is time to start a 2.x branch of Entity?
Comment #13
chris matthews commentedDave's 7 year old patch in #6 applied cleanly to the latest entity 7.x-1.x-dev, but I believe this issue is outdated.