function theme_hidden
Same name and namespace in other branches
- 6.x drupal-6.x/includes/form.inc \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
Archivo
- drupal-7.x/
includes/ form.inc, line 3802 - Functions for form and batch generation and processing.
Código
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";
}