summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-05-25 15:39:34 +0000
committerDries Buytaert <dries@buytaert.net>2007-05-25 15:39:34 +0000
commit2ea8460ea9ad5f82127bd3605fcb4765bd2de56d (patch)
tree48f72308af20d50c4a997a9583a5037df707cd77
parent4a6f5869e5df2433643199d2ab239569b3ece6b2 (diff)
downloadbrdo-2ea8460ea9ad5f82127bd3605fcb4765bd2de56d.tar.gz
brdo-2ea8460ea9ad5f82127bd3605fcb4765bd2de56d.tar.bz2
- Patch #146187 by walkah: FAPI 3 removes ['#post'] from hook_form_alter.
-rw-r--r--includes/form.inc2
1 files changed, 2 insertions, 0 deletions
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;