theme_hidden

Definition

theme_hidden($element)
drupal/includes/form.inc, line 2094

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

Namesort iconDescription
Default theme implementationsFunctions and templates that present output to the user, and can be implemented by themes.
Form generationFunctions to enable the processing and display of HTML forms.

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