You are here

function theme_item in Drupal 5

Same name and namespace in other branches
  1. 4 includes/form.inc \theme_item()
  2. 6 includes/form.inc \theme_item()

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 1295

Code

function theme_item($element) {
  return theme('form_element', $element, $element['#value'] . $element['#children']);
}