theme_hidden
Definition
theme_hidden($element)
includes/form.inc, line 2062
Description
Format a hidden form field.
Parameters
$element An associative array containing the properties of the element.
Return value
A themed HTML string representing the hidden form field.
Related topics
| Name | Description |
|---|---|
| Default theme implementations | Functions and templates that present output to the user, and can be implemented by themes. |
| Form generation | Functions to enable the processing and display of HTML forms. |
Code
<?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";
}
?> 