- Patch #46705 by killes: don't use array_merge.
parent
5c75ee8947
commit
2210b607b0
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue