From 8c8af42c6466259f5a199cd22672e23cbe30af88 Mon Sep 17 00:00:00 2001 From: Neil Drumm <drumm@3064.no-reply.drupal.org> Date: Tue, 23 May 2006 03:18:55 +0000 Subject: [PATCH] #62366 by malex, Steven, and fgm: XHTML error, duplicate ids on hidden form id element. --- includes/form.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/form.inc b/includes/form.inc index 5754bc541a4d..d09676a3c56a 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -79,7 +79,7 @@ function drupal_get_form($form_id, &$form, $callback = NULL) { } } if (isset($form_id)) { - $form['form_id'] = array('#type' => 'hidden', '#value' => $form_id); + $form['form_id'] = array('#type' => 'hidden', '#value' => $form_id, '#id' => str_replace('_', '-', "edit-$form_id")); } if (!isset($form['#id'])) { $form['#id'] = $form_id; -- GitLab