#109326: #id attribute not output for buttons.

5.x
Steven Wittens 2007-01-15 04:09:40 +00:00
parent 110080c533
commit d351a2218a
1 changed files with 2 additions and 2 deletions

View File

@ -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";
}
/**