theme_item

  1. drupal
    1. 4.7
    2. 5
    3. 6 form.inc
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 928

<?php
function theme_item($element) {
  return theme('form_element', $element['#title'], $element['#value'] . $element['#children'], $element['#description'], $element['#id'], $element['#required'], $element['#error']);
}
?>