theme_item

Definition

theme_item($element)
drupal/includes/form.inc, line 1281

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

Namesort iconDescription
Form generationFunctions to enable the processing and display of HTML forms.

Code

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