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
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Not done
Details: 

The 6-to-7 module upgrade guide already gives guidance not to use $form['#node_edit_form'].

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.