Re-add the ability to add extra form fields via hook_field_attach_form

Created on 23 February 2019, over 5 years ago
Updated 9 May 2023, over 1 year ago

Problem/Motivation

hook_field_attach_form was apparently lost in the battle in #2095195: Remove deprecated field_attach_form_*() β†’ . Ow as @tim.plunkett put it in #2095195-108: Remove deprecated field_attach_form_*() β†’ :

Ouch, I missed that this removed hook_field_attach_form(). That will hurt, as it was a nice pairing for hook_field_extra_fields() in D7. I honestly have no idea how to modernize that code now, and the change notice (https://drupal.org/node/2225801) is absolutely zero help. It just says "Use the Entity API instead", as though that will impart some information.

In fact there is currently no sane way to add extra fields to entity forms. And maybe as of this ds_forms did not get ported, and surely as of this we are stuck in EVA's #3031564: Attach View to Entity Form (mode) β†’ .

Bug as of regression, major as of contrib bollocker.

Proposed resolution

Re-add the hook.

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Release notes snippet

TBD

πŸ› Bug report
Status

Active

Version

10.1 ✨

Component
FieldΒ  β†’

Last updated 5 days ago

Created by

πŸ‡©πŸ‡ͺGermany geek-merlin Freiburg, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024