diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-08-15 07:55:54 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-08-15 07:55:54 +0000 |
commit | bb153976b131a3382a1605e3a6ad9a1c0952b71e (patch) | |
tree | 23213930eab3fe88ee92ce05881b1c5f20e9c9a0 | |
parent | ddb9a03a70fb58cc0f1779d29cecaca6c1927f5a (diff) | |
download | brdo-bb153976b131a3382a1605e3a6ad9a1c0952b71e.tar.gz brdo-bb153976b131a3382a1605e3a6ad9a1c0952b71e.tar.bz2 |
- Patch #279404 by chx: removed old cruft. See http://drupal.org/files/issues/fapi_award.jpg.
-rw-r--r-- | includes/form.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/form.inc b/includes/form.inc index 61c2261d6..202516960 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -503,6 +503,7 @@ function drupal_prepare_form($form_id, &$form, &$form_state) { } $form += _element_info('form'); + $form += array('#tree' => FALSE, '#parents' => array()); if (!isset($form['#validate'])) { if (drupal_function_exists($form_id . '_validate')) { @@ -1328,8 +1329,6 @@ function _element_info($type, $refresh = NULL) { '#description' => NULL, '#attributes' => array(), '#required' => FALSE, - '#tree' => FALSE, - '#parents' => array() ); if (!isset($cache) || $refresh) { $cache = array(); |