| Versionen | |
|---|---|
| drupal6 | theme_item($element) |
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.
includes/
<?php
function theme_item($element) {
return theme('form_element', $element, $element['#value'] . (!empty($element['#children']) ? $element['#children'] : ''));
}
?>
Kommentare
Kommentar hinzufügen