Commit 2210b607 authored by Dries's avatar Dries
Browse files

- Patch #46705 by killes: don't use array_merge.

parent 5c75ee89
......@@ -1628,7 +1628,7 @@ function node_form_array($node) {
$form['#node'] = $node;
// Get the node-specific bits.
$form = array_merge($form, node_invoke($node, 'form'));
$form = array_merge_recursive($form, node_invoke($node, 'form'));
if (!isset($form['title']['#weight'])) {
$form['title']['#weight'] = -5;
}
......
......@@ -1628,7 +1628,7 @@ function node_form_array($node) {
$form['#node'] = $node;
// Get the node-specific bits.
$form = array_merge($form, node_invoke($node, 'form'));
$form = array_merge_recursive($form, node_invoke($node, 'form'));
if (!isset($form['title']['#weight'])) {
$form['title']['#weight'] = -5;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment