[development] Why $form['#post'] is cloned for each element instead of beeing passed by reference ?
Daniel Caillibaud
ml at lairdutemps.org
Thu Mar 25 14:21:35 UTC 2010
Hi,
Is there any reason to a valued affectation of $form['#post'] instead of a reference affectation ?
In form.inc, function form_builder, line 892, there is
foreach (element_children($form) as $key) {
$form[$key]['#post'] = $form['#post'];
why not just a
$form[$key]['#post'] = &$form['#post'];
?
Thx
--
Daniel
More information about the development
mailing list