theme_hidden

Definition

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

Description

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

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

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

Drupal is a registered trademark of Dries Buytaert.