- Patch #60017 by praseodym: add id's to hidden form fiels. Useful for Javascript purposes.

4.7.x
Dries Buytaert 2006-04-24 19:34:50 +00:00
parent 9472fbae38
commit 9e9e0e2c63
1 changed files with 1 additions and 1 deletions

View File

@ -951,7 +951,7 @@ function theme_button($element) {
* A themed HTML string representing the hidden form field.
*/
function theme_hidden($element) {
return '<input type="hidden" name="'. $element['#name'] . '" value="'. check_plain($element['#value']) ."\" " . drupal_attributes($element['#attributes']) ." />\n";
return '<input type="hidden" name="'. $element['#name'] . '" id="'. $element['#id'] . '" value="'. check_plain($element['#value']) ."\" " . drupal_attributes($element['#attributes']) ." />\n";
}
/**