theme_item

Versions
4.7 – 6
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

Code

includes/form.inc, line 1861

<?php
function theme_item($element) {
  return theme('form_element', $element, $element['#value'] . (!empty($element['#children']) ? $element['#children'] : ''));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.