Simplify form alter by using hook_form_BASE_FORM_ID_alter

Created on 19 January 2021, almost 4 years ago
Updated 6 February 2023, almost 2 years ago

Problem/Motivation

Currently the form_alter hook checks for a class in the form attributes which is flakey as if this class is removed in the future or if another module/theme has removed this class the module will no longer work.

Proposed resolution

Use hook_form_BASE_FORM_ID_alter instead.

📌 Task
Status

RTBC

Version

1.0

Component

Code

Created by

🇦🇺Australia acbramley

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