theme_hidden

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

Returns HTML for 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.

Related topics

Code

includes/form.inc, line 3665

<?php
function theme_hidden($variables) {
  $element = $variables['element'];
  $element['#attributes']['type'] = 'hidden';
  element_set_attributes($element, array('name', 'value'));
  return '<input' . drupal_attributes($element['#attributes']) . " />\n";
}
?>