Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By bfroehle on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
$form['#node_edit_form']
is no longer set.$form_state['build_info']['base_form_id']
will be set to'node_form'
instead.- Use hook_form_BASE_FORM_ID_alter() rather than hook_form_alter() to modify the node edit form. That is, use
hook_form_node_form_alter()
.
Impacts:
Module developers
Comments
Use hook_form_node_form_alter()
Actually the preferred replacement is just to use hook_form_node_form_alter(&$form, &$form_state) instead of hook_form_alter().
Just for documentation
Just for documentation purpose hook_form_node_form_alter() is a specific instance of hook_form_BASE_FORM_ID_alter
I incorporated this into the
I incorporated this into the text of the change notification.