You are here

function theme_checkboxes in Drupal 4

Same name and namespace in other branches
  1. 5 includes/form.inc \theme_checkboxes()
  2. 6 includes/form.inc \theme_checkboxes()
  3. 7 includes/form.inc \theme_checkboxes()

Format a set of checkboxes.

Parameters

$element: An associative array containing the properties of the element.

Return value

A themed HTML string representing the checkbox set.

Related topics

File

includes/form.inc, line 965

Code

function theme_checkboxes($element) {
  if ($element['#title'] || $element['#description']) {
    return theme('form_element', $element['#title'], $element['#children'], $element['#description'], NULL, $element['#required'], form_get_error($element));
  }
  else {
    return $element['#children'];
  }
}