Change record status: 
Project: 
Introduced in branch: 
8.x
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

dave reid’s picture

Actually the preferred replacement is just to use hook_form_node_form_alter(&$form, &$form_state) instead of hook_form_alter().

jgraham’s picture

Just for documentation purpose hook_form_node_form_alter() is a specific instance of hook_form_BASE_FORM_ID_alter

xjm’s picture

I incorporated this into the text of the change notification.