diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-01-15 04:09:40 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-01-15 04:09:40 +0000 |
commit | d351a2218ab4e6f8ec44b2772912ba034943e8e6 (patch) | |
tree | bb27f2caf20a3fe9ab9b7bd5c8925bf87a30b491 | |
parent | 110080c533388fb87d6c22fd5ea287a4b86d5e54 (diff) | |
download | brdo-d351a2218ab4e6f8ec44b2772912ba034943e8e6.tar.gz brdo-d351a2218ab4e6f8ec44b2772912ba034943e8e6.tar.bz2 |
#109326: #id attribute not output for buttons.
-rw-r--r-- | includes/form.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/form.inc b/includes/form.inc index 087b77df9..c8e98d345 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"; } /** |