Skip to content
Snippets Groups Projects
Commit b69b8505 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #126177 by AjK: fixed E_NOTICE because of sloppy array_merge_recursive().

parent cbca44a8
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -2020,7 +2020,9 @@ function node_form($node, $form_values = NULL) {
$node->format = NULL;
}
// Get the node-specific bits.
$form = array_merge_recursive($form, node_invoke($node, 'form', $form_values));
if ($extra = node_invoke($node, 'form', $form_values)) {
$form = array_merge_recursive($form, $extra);
}
if (!isset($form['title']['#weight'])) {
$form['title']['#weight'] = -5;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment