Closed (fixed)
Project:
Viewfield
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 Jul 2011 at 20:25 UTC
Updated:
4 Jan 2014 at 01:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
keithm commentedI'm not aware of any custom UI token support in the 7.x-2.x branch. I removed the lazy entity loading function.
Comment #2
sunWith "custom support", I mainly meant the huge chunk of code in viewfield_field_widget_form().
The Token API is in D7 core. Only the Token UI is in contrib. So, regardless of whether Token module is installed, D7 style tokens will work.
If Token module is installed, then we can additionally output the token UI help. However, we should not output it for every single field widget in the form.
Comment #3
keithm commentedToken help is currently only attached to the first viewfield on a form.
The following code provides some help if the token module isn't enabled:
If we don't include something along these lines, I think we should enforce a hard dependency on the token module, or prepare for a large number of support requests :) In the end, a hard dependency might be the best solution anyway, in which case we could lose this whole else{}.
Comment #4
keithm commentedRerolled and cleaned up some more. This issue should be closed before working on #1230248: Store vargs serialized instead of custom delimited string.
Comment #5
keithm commentedReworded and cleaned up the token description language.
Comment #6
keithm commentedPushed this to get rid of too many dependent patches. We'll clean up later as necessary. Commit: http://drupalcode.org/project/viewfield.git/commit/35031ad.