function theme_hidden

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

File

includes/form.inc, line 3963
Functions for form and batch generation and processing.

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!form.inc/function/theme_hidden/7.x