Definition

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

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
Default theme implementationsFunctions and templates that present output to the user, and can be implemented by themes.
Form generationFunctions to enable the processing and display of HTML forms.

Code

function theme_item($element) {
  return theme('form_element', $element, $element['#markup'] . (!empty($element['#children']) ? $element['#children'] : ''));
}