Can you tell me why $entity_type is necessary in hook_ds_fields_info? The entity type could be limited with a property in the defintion.

What do you recommend for creating fields for every fieldable entity type? A foreach loop through all entity types?!

Comments

aspilicious’s picture

Status: Active » Fixed

Yes a foreach loop. I'll see if I keep this hard requirement in D8...
It's mainly handy to fetch all the fields for a specific entity at one go.

yannickoo’s picture

Okay, thank you :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.