| Versions | |
|---|---|
| 4.7 – 6 | theme_hidden( |
| 7 | theme_hidden($variables) |
Format a hidden form field.
$element An associative array containing the properties of the element. Properties used: value, edit
A themed HTML string representing the hidden form field.
includes/
<?php
function theme_hidden($element) {
return '<input type="hidden" name="' . $element['#name'] . '" id="' . $element['#id'] . '" value="' . check_plain($element['#value']) . "\" " . drupal_attributes($element['#attributes']) . " />\n";
}
?>