[development] Why $form['#post'] is cloned for each element instead of beeing passed by reference ?

Earnie Boyd earnie at users.sourceforge.net
Thu Mar 25 14:37:15 UTC 2010


Daniel Caillibaud wrote:
>  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']; ?

This is better discussed with a support issue ticket for the Drupal project.

-- 
Earnie
-- http://progw.com
-- http://www.for-my-kids.com



More information about the development mailing list