og_prepopulate_field_widget_og_complex_form_alter hook is deprecated

Created on 27 February 2024, 4 months ago
Updated 28 February 2024, 4 months ago

Problem/Motivation

Hook og_prepopulate_field_widget_og_complex_form_alter is deprecated in Drupal 10.

Referencing https://www.drupal.org/node/3180429 (Streamline field widget hooks), hook_field_widget_form_alter and hook_field_widget_WIDGET_TYPE_form_alter are deprecated in D10. Luckily I am not using the og and og_prepopulate sub-module, however I thought I may report it for anyone who will be willing to replace it.

Steps to reproduce

- This hook (silently) will not be invoked in Drupal 10

Proposed resolution

- Replace with hook_field_widget_single_element_form_alter hook

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇦🇺Australia jordan.jamous

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

Comments & Activities

Production build 0.69.0 2024