function theme_hidden

7.x theme_hidden($variables)
5.x theme_hidden($element)
6.x theme_hidden($element)

Returns HTML for a hidden form element.


$variables: An associative array containing:

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

Related topics

118 string references to the theme hook from theme_hidden()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

aggregator_form_category in drupal/modules/aggregator/
Form constructor to add/edit/delete aggregator categories.
aggregator_form_feed in drupal/modules/aggregator/
Form constructor for adding and editing feed sources.
block_admin_display_form in drupal/modules/block/
Form constructor for the main block administration form.
block_custom_block_delete in drupal/modules/block/
Form constructor for the custom block deletion form.
CommentInterfaceTest::setEnvironment in drupal/modules/comment/comment.test
Re-configures the environment, module settings, and user permissions.

... See full list


drupal/includes/, line 3871
Functions for form and batch generation and processing.


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