Hello,
I'm trying to create a custom field formatter and am looking for a way to get a list of fields associated with a particular field.
For example, if I want to make a formatter that will output something put into all caps, I might want to output:
- the contents of the summary field when displaying the body as a teaser
- the contents of the title field when displaying the image (e.g. to put a caption after the image)
- the contents of the description field when displaying a tag name
- the contents of a custom field when displaying something else
What I'm trying to do is get a list of all of the fields, both built-in and custom, that a particular field has. So, a body has value
, summary
, and format
fields, but a taxonomy might have name
, description
, field_custom_1
, etc.