When using the new hook_field_formatter_settings_*_alter with ds fields it is very hard to know which formatter has been choosed in the parameters so formatter dependant settings are hard to show/hide/format in the form or the summary.

Comments

duaelfr’s picture

Status: Active » Needs review
StatusFileSize
new2.36 KB

This patch has been built to avoid side effects so it should not create new bugs.

It adds formatter name to the context for settings form and settings summary for the ds fields.
Plus, it also adds formatter data to the context for core fields settings summary.

swentel’s picture

Looks sane, will commit this but not before december 18 (that's when my vacation starts), but you can rely on the patch if you want already :)

duaelfr’s picture

Status: Needs review » Reviewed & tested by the community

Thank you Kristof.

swentel’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed, thanks!

duaelfr’s picture

Thanks to you :)

swentel’s picture

Status: Fixed » Closed (fixed)