You are here

function theme_hidden in Drupal 6

Same name and namespace in other branches
  1. 4 includes/form.inc \theme_hidden()
  2. 5 includes/form.inc \theme_hidden()
  3. 7 includes/form.inc \theme_hidden()

Format a hidden form field.

Parameters

$element: An associative array containing the properties of the element. Properties used: value, edit

Return value

A themed HTML string representing the hidden form field.

Related topics

1 theme call to theme_hidden()
theme_token in includes/form.inc
Format a form token.

File

includes/form.inc, line 2107

Code

function theme_hidden($element) {
  return '<input type="hidden" name="' . $element['#name'] . '" id="' . $element['#id'] . '" value="' . check_plain($element['#value']) . "\" " . drupal_attributes($element['#attributes']) . " />\n";
}