| 5 form.inc | theme_item($element) |
| 6 form.inc | theme_item($element) |
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
File
- includes/
form.inc, line 1874
Code
function theme_item($element) {
return theme('form_element', $element, $element['#value'] . (!empty($element['#children']) ? $element['#children'] : ''));
}
Login or register to post comments