theme_hidden

Versions
4.7 – 6
theme_hidden($element)
7
theme_hidden($variables)

Theme a hidden form element.

Parameters

$variables An associative array containing:

  • element: An associative array containing the properties of the element. Properties used: #name, #value, #attributes.

Return value

A themed HTML string representing the form element.

Related topics

Code

includes/form.inc, line 2631

<?php
function theme_hidden($variables) {
  $element = $variables['element'];
  return '<input type="hidden" name="' . $element['#name'] . '" id="' . $element['#id'] . '" value="' . check_plain($element['#value']) . "\" " . drupal_attributes($element['#attributes']) . " />\n";
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.