theme_item($element)
drupal/includes/form.inc, line 1953
Format a form item.
$element An associative array containing the properties of the element. Properties used: title, value, description, required, error
A themed HTML string representing the form item.
| Name | Description |
|---|---|
| Default theme implementations | Functions and templates that present output to the user, and can be implemented by themes. |
| Form generation | Functions to enable the processing and display of HTML forms. |
function theme_item($element) {
return theme('form_element', $element, $element['#markup'] . (!empty($element['#children']) ? $element['#children'] : ''));
}