function theme_hidden

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

1 theme call to theme_hidden()
system_element_info in modules/system/system.module
Implements hook_element_info().

File

includes/form.inc, line 4009

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.