From d351a2218ab4e6f8ec44b2772912ba034943e8e6 Mon Sep 17 00:00:00 2001 From: Steven Wittens <steven@10.no-reply.drupal.org> Date: Mon, 15 Jan 2007 04:09:40 +0000 Subject: [PATCH] #109326: #id attribute not output for buttons. --- includes/form.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/form.inc b/includes/form.inc index 087b77df9cc5..c8e98d34546e 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -1332,7 +1332,7 @@ function theme_submit($element) { } function theme_button($element) { - //Make sure not to overwrite classes + // Make sure not to overwrite classes. if (isset($element['#attributes']['class'])) { $element['#attributes']['class'] = 'form-'. $element['#button_type'] .' '. $element['#attributes']['class']; } @@ -1340,7 +1340,7 @@ function theme_button($element) { $element['#attributes']['class'] = 'form-'. $element['#button_type']; } - return '<input type="submit" '. (empty($element['#name']) ? '' : 'name="'. $element['#name'] .'" ') .'value="'. check_plain($element['#value']) .'" '. drupal_attributes($element['#attributes']) ." />\n"; + return '<input type="submit" '. (empty($element['#name']) ? '' : 'name="'. $element['#name'] .'" ') .'id="'. $element['#id'].'" value="'. check_plain($element['#value']) .'" '. drupal_attributes($element['#attributes']) ." />\n"; } /** -- GitLab