theme_item
Definition
theme_item($element)
includes/form.inc, line 927
Description
Format a form item.
Parameters
$element An associative array containing the properties of the element. Properties used: title, value, description, required, error
Return value
A themed HTML string representing the form item.
Related topics
| Name | Description |
|---|---|
| Form generation | Functions to enable output of HTML forms and form elements. |
Code
<?php
function theme_item($element) {
return theme('form_element', $element['#title'], $element['#value'] . $element['#children'], $element['#description'], $element['#id'], $element['#required'], $element['#error']);
}
?> 