theme_hidden

  1. drupal
    1. 4.7
    2. 5
    3. 6 form.inc
    4. 7 form.inc
Versions
4.7 – 6 theme_hidden($element)
7 theme_hidden($variables)

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

Code

includes/form.inc, line 1016

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