From 2ea8460ea9ad5f82127bd3605fcb4765bd2de56d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 25 May 2007 15:39:34 +0000 Subject: - Patch #146187 by walkah: FAPI 3 removes ['#post'] from hook_form_alter. --- includes/form.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'includes') diff --git a/includes/form.inc b/includes/form.inc index 0d08dd230..39972177f 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -74,6 +74,7 @@ function drupal_get_form($form_id) { // object, we're hitting the form for the first time and we need // to build it from scratch. if (!isset($form)) { + $form_state['post'] = $_POST; $form = call_user_func_array('drupal_retrieve_form', $args); $form_build_id = md5(mt_rand()); $form['#build_id'] = $form_build_id; @@ -81,6 +82,7 @@ function drupal_get_form($form_id) { if (!empty($form['#cache'])) { cache_set('form_'. $form_build_id, $form, 'cache_form', $expire); } + unset($form_state['post']); } $form['#post'] = $_POST; -- cgit v1.2.3