From bb153976b131a3382a1605e3a6ad9a1c0952b71e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 15 Aug 2008 07:55:54 +0000 Subject: - Patch #279404 by chx: removed old cruft. See http://drupal.org/files/issues/fapi_award.jpg. --- includes/form.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'includes') 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(); -- cgit v1.2.3