You are here

function theme_hidden in Drupal 4

Same name and namespace in other branches
  1. 5 includes/form.inc \theme_hidden()
  2. 6 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

File

includes/form.inc, line 1015

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";
}